I want my Lucene query to contain something similar to:
companyNam: mercedes trucks
Where it will exactly match the line "mercedes trucks" in the companyName field.
CompanyName is an unclosed field, but all with a space returns zero results.
new TermQuery(new Term("companyName", "mercedes trucks"));
Always prints 0 results if there is a space. Otherwise, my program works fine.
Boris Callens
source share