Re: need help with exact match search

2012-10-22 Thread geeky2
hello jack,

that was it!

thx
mark




--
View this message in context: 
http://lucene.472066.n3.nabble.com/need-help-with-exact-match-search-tp4014832p4015103.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: need help with exact match search

2012-10-19 Thread Jack Krupansky
Because you used solr.StandardTokenizerFactory which will tokenize terms at 
some delimiters - such as the hyphens that surround your errant 404 case.


Try solr.WhitespaceTokenizerFactory or solr.KeywordTokenizerFactory.

And maybe rename your field type from text_general_trim to text_exact 
since general implies a general text analyzer.


Test your field type changes on the Solr Admin Analysis page.

-- Jack Krupansky

-Original Message- 
From: geeky2

Sent: Friday, October 19, 2012 5:20 PM
To: solr-user@lucene.apache.org
Subject: need help with exact match search

environment: solr 3.5

Hello,

i have a query for an exact match that is bringing back one (1) additional
record that is NOT an exact match.

when i do an exact match search for 404 - i should get back three (3)
document, *but i get back the additional record, with an
itemModelNoExactMatchStr of DUS-404-19  *

can someone help me understand what i am missing or not setting up
correctly?


response from solr with 4 documents

?xml version=1.0?
response
 lst name=responseHeader
   int name=status0/int
   int name=QTime1/int
   lst name=params
 str name=sortitemModelNoExactMatchStr asc/str
 str name=fqitemType:2/str
 str name=echoParamsall/str
 str name=qfitemModelNoExactMatchStr^30.0/str
 str name=q.alt*:*/str
 str name=rows50/str
 str name=defTypeedismax/str
 str name=debugQuerytrue/str
   *  str name=qitemModelNoExactMatchStr:404/str*
 str name=qtmodelItemNoSearch/str
 str name=rows50/str
 str name=facetfalse/str
   /lst
 /lst
 *result name=response numFound=4 start=0*
   doc
 arr name=divProductTypeDesc
   strKitchen Equipment*/str
 /arr
 str name=divProductTypeId0212020/str
 str name=id0212020,0431  ,404
/str
 str name=itemModelDescELECTRIC GENERAL SLICER WITH VACU BASE/str
* str name=itemModelNo404/str*
 str name=itemModelNoExactMatchStr404
/str
 int name=itemType2/int
 int name=partCnt13/int
 arr name=plsBrandDesc
   strGENERAL/str
 /arr
 str name=plsBrandId0431  /str
 int name=rankNo0/int
   /doc
   doc
 arr name=divProductTypeDesc
   strVacuum, Canister/str
 /arr
 str name=divProductTypeId0642000/str
 str name=id0642000,0517  ,404
/str
 str name=itemModelDescHOOVER /str
 str name=itemModelNo404/str
* str name=itemModelNoExactMatchStr404
/str*
 int name=itemType2/int
 int name=partCnt48/int
 arr name=plsBrandDesc
   strHOOVER/str
 /arr
 str name=plsBrandId0517  /str
 int name=rankNo0/int
   /doc
   doc
 arr name=divProductTypeDesc
   strPower roller/str
 /arr
 str name=divProductTypeId0733200/str
 str name=id0733200,1164  ,404
/str
 str name=itemModelDescPOWER PAINTER/str
 str name=itemModelNo404/str
* str name=itemModelNoExactMatchStr404
/str*
 int name=itemType2/int
 int name=partCnt39/int
 arr name=plsBrandDesc
   strWAGNER/str
 /arr
 str name=plsBrandId1164  /str
 int name=rankNo0/int
   /doc
   doc
 arr name=divProductTypeDesc
   strDishwasher^/str
 /arr
 str name=divProductTypeId013/str
 str name=id013,0164  ,DUS-404-19
/str
 str name=itemModelDescDISHWASHERS/str
 str name=itemModelNoDUS-404-19 /str
 *str name=itemModelNoExactMatchStrDUS-404-19
/str*
 int name=itemType2/int
 int name=partCnt185/int
 arr name=plsBrandDesc
   strCALORIC/str
 /arr
 str name=plsBrandId0164  /str
 int name=rankNo0/int
   /doc
 /result
 lst name=debug
   str name=rawquerystringitemModelNoExactMatchStr:404/str
   str name=querystringitemModelNoExactMatchStr:404/str
   str name=parsedquery+itemModelNoExactMatchStr:404/str
   str name=parsedquery_toString+itemModelNoExactMatchStr:404/str
   lst name=explain
 str name=0212020,0431  ,404
10.053003 = (MATCH) fieldWeight(itemModelNoExactMatchStr:404 in 4745495),
product of:
 1.0 = tf(termFreq(itemModelNoExactMatchStr:404)=1)
 10.053003 = idf(docFreq=971, maxDocs=8304922)
 1.0 = fieldNorm(field=itemModelNoExactMatchStr, doc=4745495)
/str
 str name=0642000,0517  ,404
10.053003 = (MATCH) fieldWeight(itemModelNoExactMatchStr:404 in 4781972),
product of:
 1.0 = tf(termFreq(itemModelNoExactMatchStr:404)=1)
 10.053003 = idf(docFreq=971, maxDocs=8304922)
 1.0 = fieldNorm(field=itemModelNoExactMatchStr, doc=4781972)
/str
 str name=0733200,1164  ,404
10.053003 = (MATCH) fieldWeight(itemModelNoExactMatchStr:404 in 8186768),
product of:
 1.0 = tf(termFreq(itemModelNoExactMatchStr:404)=1)
 10.053003 = idf(docFreq=971, maxDocs=8304922)
 1.0 = fieldNorm(field=itemModelNoExactMatchStr, doc=8186768)
/str
 str name=013,0164  ,DUS-404-19 
5.0265017 = (MATCH

Re: need help with exact match search

2012-10-19 Thread geeky2
hello jack,

thank you very much for the reply - i will re-test and let you know.

really appreciate it ;)

thx
mark




--
View this message in context: 
http://lucene.472066.n3.nabble.com/need-help-with-exact-match-search-tp4014832p4014848.html
Sent from the Solr - User mailing list archive at Nabble.com.