if the query is in quotes it will work. also, not sure if youve been following, but get rid of: StopFilterFactory and all stopwords, or just make your stop word file empty if you need it to work in non quotes, add them to the query post submission ?
On Mon, Dec 2, 2019 at 3:44 PM OTH <omer.t....@gmail.com> wrote: > Hello, > > What would be the best way to get exact matches (if any) to a query? > > E.g.: Let's the document text is: "united states of america". > Currently, any query containing one or more of the three words "united", > "states", or "america" will match with the above document. I would like a > way so that the document matches only and only if the query were also > "united states of america" (case-insensitive). > > Document field type: TextField > Index Analyzer: TokenizerChain > Index Tokenizer: StandardTokenizerFactory > Index Token Filters: StopFilterFactory, LowerCaseFilterFactory, > SnowballPorterFilterFactory > The Query Analyzer / Tokenizer / Token Filters are the same as the Index > ones above. > > FYI I'm relatively novice at Solr / Lucene / Search. > > Much appreciated > Omer >