How to use Ickl queries for Indexed fields in RHDG?
Issue
- When I need to have a field marked with
analyzed=Analyze.YES? - do I need to adapt queries if the field annotation analyze is switched from NO to YES?
- I have unexpected results when using queries with wildcards or fuzzy operator ~
- If the following query is used there is a ParsingException
from example.Person p where p.middleName:'middle' && p.lastName='last'
org.infinispan.client.hotrod.exceptions.HotRodClientException: org.infinispan.objectfilter.ParsingException: ISPN028522: No relational queries can be applied to property 'lastName' in type example.Person since the property is analyzed.
- With the following query a ParsingException is thrown
from example.Person a where p.lastName : 'last'
org.infinispan.client.hotrod.exceptions.HotRodClientException: org.infinispan.objectfilter.ParsingException: ISPN028521: Full-text queries cannot be applied to property 'lastName' in type example.Person unless the property is indexed and analyzed.
- If embedded objects are used there is a ParsingException even if the field of the embedded object contains the
@Fieldannotation and is marked as Indexed and Analyzed?
Environment
- Red Hat JBoss Data Grid (RHDG)
- Ickl and or Lucene queries
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
