lucene - Solr query to find one letter without other letter around -


i have documents in solr indexed. want find producer , model in tire.
have file producer , model this:

nokian;wr g2 suv nokian;wr suv nokian;v 

query:

((productname:"nokian" or producer:"nokian") , (productname:"v" or description:"v" or referencenumber:"v")) 

but found example this:

"2x nokian 215/55 r17 94v line (3)" 

because in product speed index v , here model line. algorithm take product nokian;v not nokian;line.

how ask solr gives me product v don't have other letters around?

letnie 225/45/17 94v nokian v  finland - pŁoty 

this found beautiful. nokian;v.

as far understand question need put must quantifier before each boolean clause. query like:

(   +(productname:"nokian" or producer:"nokian") ,   +(productname:"v" or description:"v" or referencenumber:"v") ) 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -