I want do a basique search with lucene,
my structure elasticsearch is: my elasticsearch
And my code java is :
private static final String PANIER_ID_OPERATEUR = "ticket.ventes.differe.panierDiffere.idOperateur";
...
booleanQueryBuilder.add(new TermQuery(new Term(PANIER_ID_OPERATEUR, "50e86400-7861-47b5-aca5-56e9e89b2628")), BooleanClause.Occur.MUST);
...
And this doesn't work ...
But when i try:
private static final String RESTANTDU_FIELD = "ticket.ventes.differe.restantDu";
...
booleanQueryBuilder.add(new TermQuery(new Term(RESTANTDU_FIELD , "38.89")), BooleanClause.Occur.MUST);
...
it works ...
Thanks for your help
Solved:
I need to add "analyze = Analyze.NO" on my field idOperateur
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.