-
Notifications
You must be signed in to change notification settings - Fork 41
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
Herd-UI Search Issue #371
Comments
Tinshuk - I said it before and will say it again. I love how you dig right in and get things going! Here's the story on our search. You probably know from your knowledge of CloudFormation and install that we embed Elasticsearch behind the Herd search endpoints. We have this nicely integrated in our environments but have not yet put some settings and configurations in the open source release. Unlike #370 with Uploader, this requires multiple configs to get it to work. I am mentioning @DavidBalash who is an expert at the Elasticsearch integration in Herd. Here is an overview for your information -- David will share more details and good default configs and/or detailed instructions for each area:
It's worth mentioning that we have another team working on including all this config and default settings in a CloudFormation so it's easy for open source. We're just not quite there yet -- but I am sure you and David can get your instance up and running! |
Hi Tinshuk, I have added the following Elasticsearch setup page to the Herd wiki on GitHub: https://github.com/FINRAOS/herd/wiki/Elasticsearch-setup I have also added all of the Elasticsearch configuration values to the existing configuration values page on the wiki: https://github.com/FINRAOS/herd/wiki/configuration-values Please let us know if this helps to solve your search issue on the Herd-UI. |
Hi, I am facing the same issue, after activating the indexes I can see 4 documents in an index see image below: Here is the curl request which I copied from the "Dev Tools" in chrome:
I am using the same version of ES as in pom file which is 5.1.1. Here is the screen shot of Herd-UI app: Please suggest/guide how to fix this. |
Hi @zubair-nbx, can you please send the contents of your catalina.out from this time period? This should help us troubleshoot the issue. Thank you! |
Hi @nateiam , Thanks for your response. Please see my findings Below:
The query generated by libs in Herd uses inline groovy script see the portion of query using script:
This makes the Global search with filter 'All' works fine, but selecting filter 'Column' doesn't work still, see details below: - Issue with ‘Column’ filter on Herd-UI homepage page global search:
Also note that, this setting is read from class “ConfigurationValue.java” 'ELASTICSEARCH_HIGHLIGHT_FIELDS("elasticsearch.highlight.fields", "{"fields": ["*"]}")' It also causes exception while creating json object. The lib fasterXml / JSON is not able to parse the object
Code snippet below:
Hope it helps, please comment if more details is needed. |
* commit 'ff1ba4c392eb58133b3e90b2a0c45fe960b3da15': Added initial version of the herd.postgres.0.75.0-to-0.76.0.upgrade.sql script Update pom to 0.76.0-SNAPSHOT
Hello Team,
I have created business object definition 'test_bus_def_1' from Swagger and now I am trying to search it from Herd-UI home page. It's giving NullPointerException.
Below are the logs -
Mar-02-2018 10:29:04.186 [http-nio-8080-exec-10] INFO org.finra.herd.dao.JestClientFactory.getJestClient userId=TRUSTED_USER - Elasticsearch REST Client Settings: scheme=http, hostname=localhost, port=9200, serverUri=http://localhost:9200
Mar-02-2018 10:29:04.837 [http-nio-8080-exec-10] ERROR finra.herd.service.helper.HerdErrorInformationExceptionHandler.logError userId=TRUSTED_USER - A general error occurred.
java.lang.NullPointerException
at io.searchbox.core.SearchResult.getHits(SearchResult.java:85) ~[jest-common-5.3.3.jar:?]
at io.searchbox.core.SearchResult.getHits(SearchResult.java:73) ~[jest-common-5.3.3.jar:?]
at io.searchbox.core.SearchResult.getHits(SearchResult.java:65) ~[jest-common-5.3.3.jar:?]
at io.searchbox.core.SearchResult.getHits(SearchResult.java:61) ~[jest-common-5.3.3.jar:?]
at org.finra.herd.dao.impl.IndexSearchDaoImpl.buildIndexSearchResults(IndexSearchDaoImpl.java:331) ~[herd-dao-0.59.0.jar:?]
at org.finra.herd.dao.impl.IndexSearchDaoImpl.indexSearch(IndexSearchDaoImpl.java:299) ~[herd-dao-0.59.0.jar:?]
at org.finra.herd.service.impl.IndexSearchServiceImpl.indexSearch(IndexSearchServiceImpl.java:124) ~[herd-service-0.59.0.jar:?]
at org.finra.herd.service.impl.IndexSearchServiceImpl$$FastClassBySpringCGLIB$$b380baaf.invoke() ~[herd-service-0.59.0.jar:?]
We added below entries in srch_idx table as it was giving error
No active search index found for type BUS_OBJCT_DFNTN/TAG
. -Do we have to perform any steps to be able to search from Herd-UI home page?
The text was updated successfully, but these errors were encountered: