OK, first question is why are you searching on two different values? Is that intentional? If I'm reading your problem right, you should be able to get/not get any response just by toggling whether the period is in the search URL, right?
But assuming that's not the problem, there's something you're not telling us. In particular, why is this parsing as "MultiPhraseQuer"? Are you putting quotes in somehow, either through the URL or by something in your solrconfig.xml? Because this works fine for me, using your schema definition and without using quotes. I get, however, this as the parsed query: eoe:b eoe:12 eoe:0123 eoe:120123 eoe:b120123 not a phrase in sight. If I *do* put quotes around the version without the period, I get no results returned and a MultiPhraseQuery. Best Erick On Wed, Feb 8, 2012 at 11:54 AM, geeky2 <gee...@hotmail.com> wrote: > hello, > > thanks for sticking with me on this ...very frustrating > > ok - i did perform the query with the debug parms using two scenarios: > > 1) a successful search (where i insert the period / dot) in to the itemNo > field and the search returns a document. > > itemNo:BP2.1UAA > > http://hfsthssolr1.intra.searshc.com:8180/solrpartscat/core1/select/?q=itemNo%3ABP2.1UAA&version=2.2&start=0&rows=10&indent=on&debugQuery=on > > results from debug > > <?xml version="1.0" encoding="UTF-8"?> > <response> > > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">1</int> > <lst name="params"> > <str name="indent">on</str> > <str name="rows">10</str> > > <str name="version">2.2</str> > <str name="debugQuery">on</str> > <str name="start">0</str> > <str name="q">itemNo:BP2.1UAA</str> > </lst> > </lst> > <result name="response" numFound="1" start="0"> > <doc> > > <arr name="brand"><str>PHILIPS</str></arr> > <str name="groupId">0333500</str> > <str name="id">0333500,1549 ,BP2.1UAA </str> > <str name="itemDesc">PLASMA TELEVISION</str> > <str name="itemNo">BP2.1UAA </str> > <int name="itemType">2</int> > > <arr name="model"><str>BP2.1UAA </str></arr> > <arr name="productType"><str>Plasma Television^</str></arr> > <int name="rankNo">0</int> > <str name="supplierId">1549 </str> > </doc> > </result> > <lst name="debug"> > <str name="rawquerystring">itemNo:BP2.1UAA</str> > > <str name="querystring">itemNo:BP2.1UAA</str> > <str name="parsedquery">MultiPhraseQuery(itemNo:"bp 2 (1 21) (uaa > bp21uaa)")</str> > <str name="parsedquery_toString">itemNo:"bp 2 (1 21) (uaa bp21uaa)"</str> > <lst name="explain"> > <str name="0333500,1549 ,BP2.1UAA "> > 22.539911 = (MATCH) weight(itemNo:"bp 2 (1 21) (uaa bp21uaa)" in 134993), > product of: > 0.99999994 = queryWeight(itemNo:"bp 2 (1 21) (uaa bp21uaa)"), product of: > 45.079826 = idf(itemNo: bp=829 2=29303 1=43943 21=6716 uaa=32 bp21uaa=1) > 0.02218287 = queryNorm > 22.539913 = (MATCH) fieldWeight(itemNo:"bp 2 (1 21) (uaa bp21uaa)" in > 134993), product of: > 1.0 = tf(phraseFreq=1.0) > 45.079826 = idf(itemNo: bp=829 2=29303 1=43943 21=6716 uaa=32 bp21uaa=1) > 0.5 = fieldNorm(field=itemNo, doc=134993) > </str> > </lst> > > <str name="QParser">LuceneQParser</str> > <lst name="timing"> > <double name="time">1.0</double> > <lst name="prepare"> > <double name="time">0.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.FacetComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > > </lst> > </lst> > <lst name="process"> > <double name="time">1.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">1.0</double> > </lst> > <lst name="org.apache.solr.handler.component.FacetComponent"> > > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > </lst> > </lst> > > </lst> > </lst> > </response> > > > > > > > > 2) a NON-successful search (where i do NOT insert a period / dot) in to the > itemNo field and the search does NOT return a document > > itemNo:BP21UAA > > http://hfsthssolr1.intra.searshc.com:8180/solrpartscat/core1/select/?q=itemNo%3ABP21UAA&version=2.2&start=0&rows=10&indent=on&debugQuery=on > > <?xml version="1.0" encoding="UTF-8"?> > <response> > > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">1</int> > <lst name="params"> > <str name="indent">on</str> > <str name="rows">10</str> > > <str name="version">2.2</str> > <str name="debugQuery">on</str> > <str name="start">0</str> > <str name="q">itemNo:BP21UAA</str> > </lst> > </lst> > <result name="response" numFound="0" start="0"/> > <lst name="debug"> > > <str name="rawquerystring">itemNo:BP21UAA</str> > <str name="querystring">itemNo:BP21UAA</str> > <str name="parsedquery">MultiPhraseQuery(itemNo:"bp 21 (uaa > bp21uaa)")</str> > <str name="parsedquery_toString">itemNo:"bp 21 (uaa bp21uaa)"</str> > <lst name="explain"/> > <str name="QParser">LuceneQParser</str> > > <lst name="timing"> > <double name="time">1.0</double> > <lst name="prepare"> > <double name="time">1.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">1.0</double> > </lst> > > <lst name="org.apache.solr.handler.component.FacetComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > </lst> > </lst> > > <lst name="process"> > <double name="time">0.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.FacetComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > </lst> > </lst> > </lst> > </lst> > > </response> > > the parsedquery part of the debug ouput looks like it DOES contain the term > that i am entering for my search criteria on the itemNo field ?? > > does this make sense? > > thank you, > mark > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/struggling-with-solr-WordDelimiterFilterFactory-and-periods-or-dots-tp3724822p3726614.html > Sent from the Solr - User mailing list archive at Nabble.com.