Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default ElasticSearch document repository settings do not work #1852

Closed
reckart opened this issue Nov 12, 2020 · 0 comments
Closed

Default ElasticSearch document repository settings do not work #1852

reckart opened this issue Nov 12, 2020 · 0 comments
Assignees
Labels
🐛Bug Something isn't working
Milestone

Comments

@reckart
Copy link
Member

reckart commented Nov 12, 2020

Describe the bug
The default object type in the ElasticSearch document repository is texts, but it seems that ElasticSearch prefers _doc these days. So we should change it.

To Reproduce
Steps to reproduce the behavior:

  1. Open a terminal and run ElasticSearch as a Docker service
$ docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "http.cors.enabled=true" -e "http.cors.allow-origin=http://localhost:9090" docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3-amd64
  1. Open a second terminal and run ElasticVue as a Docker service
$ docker run -p 9090:8080 cars10/elasticvue
  1. Open a browser and access ElasticVue at http://localhost:9090
  2. Switch to the Indices tab in ElasticVue
  3. Create an index named "test"
  4. Switch to the REST tab in ElasticVue
  5. Set the HTTP Method to "POST" and enter "test/_doc/1" as the Path (means "create a new document with ID 1 in collection test)
  6. Put the following JSON into the request body field
{
 "metadata": {
   "language": "EN",
   "source": "repo",
   "timestamp": "date",
   "uri": "address",
   "title": "Test Document Title"
 },
 "doc": {
   "text": "This is a test document"
 }
}
  1. Click "Run Query"
  2. Start up INCEpTION
  3. Create a new project "test"
  4. Add a document repository with the following settings (and click save):
Name: "test"
Type: "Elastic Search"
Remote URL: "http://localhost:9200"
Index name: "test"
Search path: "_search"
Object type: "texts"
Field: "doc.text"
Result Size: 1000:
Random ordering: false
  1. Switch to the dashboard and from there to the Search page
  2. Select the repository "test"
  3. Enter "document" into the search field and press the search button
  4. I got a result for the document I posted to the ElasticSearch index in step 8
  5. Click on import
  6. INCEpTION produces a NullPointerException

Expected behavior
No exception.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Version and build ID: 0.17.1
@reckart reckart added the 🐛Bug Something isn't working label Nov 12, 2020
@reckart reckart added this to the 0.17.2 milestone Nov 12, 2020
@reckart reckart self-assigned this Nov 12, 2020
reckart added a commit that referenced this issue Nov 12, 2020
- Update default object type to "_doc"
- Added simple testing example of ElasticSearch to the documentation
reckart added a commit that referenced this issue Nov 21, 2020
…lasticSearch-document-repository-settings-do-not-work

#1852 - Default ElasticSearch document repository settings do not work
@reckart reckart closed this as completed Nov 21, 2020
reckart added a commit that referenced this issue Nov 21, 2020
* 0.17.x:
  #1852 - Default ElasticSearch document repository settings do not work
reckart added a commit that referenced this issue Nov 21, 2020
* master:
  #1852 - Default ElasticSearch document repository settings do not work
  #1848 - Documentation-improvements
reckart added a commit that referenced this issue Nov 21, 2020
* master:
  #1852 - Default ElasticSearch document repository settings do not work
  #1830 - Upgrade to Wicket 9
  #1848 - Documentation-improvements
reckart added a commit that referenced this issue Nov 21, 2020
* master:
  #1852 - Default ElasticSearch document repository settings do not work
  #1830 - Upgrade to Wicket 9
  #1848 - Documentation-improvements
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1832 - Display project ID in developer mode
  #1830 - Upgrade to Wicket 9
reckart added a commit that referenced this issue Dec 1, 2020
…1531-PDF-recommendation-color-is-really-difficult-to-read

* commit '0c493260c649ad35f02377f82f25e9ef48c5c405': (453 commits)
  No issue. Fix version reference.
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1870 - Improve roundtrip times on annotation page
  #1868 - Deadlock importing project with large tagset on HSQLDB
  #1860 - Layers without features are not indexed for search
  No issue: Adjust to upstream API change.
  No issue: Fix problem that prepended item is rendered on different row than rest of group (hopefully)
  No issue: Fix warnings when building documentation
  #1859 - Upgrade dependencies
  #1852 - Default ElasticSearch document repository settings do not work
  #1830 - Upgrade to Wicket 9
  #1848 - Documentation-improvements
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  ...
jcklie pushed a commit that referenced this issue Feb 2, 2021
…icense-headers

#1851 - Update copyright/license headers
@reckart reckart added this to Kanban Aug 7, 2024
@reckart reckart moved this to 🍹 Done in Kanban Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant