John, Double quotes is a sign of a phrase query (and round braces inside of double quotes is a horrible to think about beast). Since the query is a disjunction of phrases and the shingle it has no chance to match any of indexed values from screenshots. Probably you need to flip autoGeneratePhraseQueries (see https://cwiki.apache.org/confluence/display/solr/Field+Type+Definitions+and+Properties )
On Wed, Apr 12, 2017 at 2:52 PM, John Blythe <j...@curvolabs.com> wrote: > you can view some of my analyses here that has caused me grief and > confusion: http://imgur.com/a/Fcht3 > > here is a debug output: > > "rawquerystring":"\"ZIMMER:ZIMMER US\"", > "querystring":"\"ZIMMER:ZIMMER US\"", > "parsedquery":"(+DisjunctionMaxQuery((manufacturer_syn:\"zimmer > zimmer\" | manufacturer_s:ZIMMER:ZIMMER US | > manufacturer_split_syn:\"zimmer zimmer\" | > manufacturer_syn_both:\"(zimmer_zimmer_us zimmer) zimmer\" | > manufacturer_text:\"zimmer zimmer us\")) ())/no_coord", > "parsedquery_toString":"+(manufacturer_syn:\"zimmer zimmer\" | > manufacturer_s:ZIMMER:ZIMMER US | manufacturer_split_syn:\"zimmer > zimmer\" | manufacturer_syn_both:\"(zimmer_zimmer_us zimmer) zimmer\" > | manufacturer_text:\"zimmer zimmer us\") ()", > "explain":{}, > > > is it the quotes that are getting things screwy? i'm not entirely versed on > how to interpret the raw and parsed query data here. does \"zimmer zimmer\" > mean that lucene is receiving that shingle rather than 'zimmer' (implicit > OR) 'zimmer'? if so, then i'm not understanding why that's happening bc > some of these have WDF that is generating word parts. > > aside: i've changed the server-side code used to send the query to split on > the colon and send over as separate tokens wrapped in quotes. in the case > above, field:("VENDOR:VENDOR US") becomes field:("VENDOR" "VENDOR US") > which successfully solves my immediate problem. that said, i'd really like > to understand better where things are going wrong w the above _and_ learn > better how to debug my queries. > > i need to get the TermsComponent used to find what is being indexed so i > can report back on that and then can share the list of items requested by > alessandro. > > thanks all! > > > On Wed, Apr 12, 2017 at 5:26 AM, alessandro.benedetti < > a.benede...@sease.io> > wrote: > > > hi John, I am a bit confused here. > > > > Let's focus on one field and one document. > > > > Given this parsed phrase query : > > > > manufacturer_split_syn:"vendor vendor" > > > > and the document 1 : > > D1 > > {"id":"1" > > "manufacturer_split_syn" : "vendor"} > > > > Are you expecting this to match ? > > because it shouldn't ... > > > > let's try to formulate the problem in this way, with less explaining and > > more step by step : > > > > Original Query : > > Parsed Query: > > Document indexed : > > Terms in the index : > > > > Cheers > > > > > > > > ----- > > --------------- > > Alessandro Benedetti > > Search Consultant, R&D Software Engineer, Director > > Sease Ltd. - www.sease.io > > -- > > View this message in context: http://lucene.472066.n3.nabble > > .com/simple-matches-not-catching-at-query-time-tp4329337p4329475.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > > -- Sincerely yours Mikhail Khludnev