Problem Note 65772: A search error occurs when synonym searching is enabled, and fields in two different entities have the same names
When synonym searching is enabled in SAS® Visual Investigator 10.6, the use of a field with the same name in two different entities can cause the following error to occur:
The search could not be completed. The error(s) have been logged and the application administrators have been notified. Error Code: 95224
In the Elasticsearch log, the following type of error message is seen:
[2020-02-03T13:10:16,081][DEBUG][o.e.a.s.TransportSearchAction] [eyA462v] [55881] Failed to execute query phase
org.elasticsearch.transport.RemoteTransportException: [eyA462v][172.17.0.26:9300][indices:data/read/search[phase/query/id]]
Caused by: java.lang.IllegalArgumentException: the field [name] should be indexed with term vector with position offsets to be used with fast vector highlighter
at org.elasticsearch.search.fetch.subphase.highlight.FastVectorHighlighter.highlight(FastVectorHighlighter.java:77) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase.hitExecute(HighlightPhase.java:110) ~[elasticsearch-6.5.4.jar:6.5.4]
Here are the steps that can reproduce this issue:
- Create two entities (Entity A, Entity B) with two fields that have the same name (for example, Field A).
- For Entity A, configure Field A to be a highlighting field and available for synonym searches.
- Ensure that Entity B does not have either of those settings for its Field A.
- Perform a search that will gather data from both entities.
Operating System and Release Information
SAS System | SAS Visual Investigator | Linux for x64 | 10.6 | 10.6 | Viya | Viya |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2020-03-30 16:01:07 |
Date Created: | 2020-03-27 14:41:18 |