RE: Issues in the Fuzzy Query !
Hello, Can you share the exact params you are passing to solr? Thanks From: vibhoreng04 [vibhoren...@gmail.com] Sent: June 21, 2013 9:27 AM To: solr-user@lucene.apache.org Subject: Issues in the Fuzzy Query ! Hi All, I have been facing problems in the fuzzy queries.For an example if I query ((FIELDNAME1:FRANK~0.80) AND (FIELDNAME1:INDIANO~0.80))^0.80 , the parsed query changes my distance grade to ~0 etc.Also in the other cases the distance is changed in the pared query like ~1 and ~2.Can anyone tell me what is the issue here .If there is any issue in the way I am querying ,I would love to hear that. str name=rawquerystring ((FIELDNAME1:FRANK~0.80) AND (FIELDNAME1:INDIANO~0.80))^0.80/str str name=querystring ((FIELDNAME1:FRANK~0.80) AND (FIELDNAME1:INDIANO~0.80))^0.80/str str name=parsedquery(+((+FIELDNAME1:FRANK~0 +FIELDNAME1:INDIANO~2)^0.8))/no_coord/str str name=parsedquery_toString+((+FIELDNAME1:FRANK~0 +FIELDNAME1:INDIANO~2)^0.8)/str lst name=explain/ str name=QParserExtendedDismaxQParser/str null name=altquerystring/ -- View this message in context: http://lucene.472066.n3.nabble.com/Issues-in-the-Fuzzy-Query-tp4072125.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Issues in the Fuzzy Query !
Hi , Below is what I am passing to solr .Only the fuzzy part is creating the problem for me- {!lucene q.op=OR}(TRIGRAM_FIELDNAME1:(FRANK INDIANO))^0.82 OR pkey: OR ((FIELDNAME1:FRANK~0.80) AND (FIELDNAME1:INDIANO~0.80))^0.80 Also the field type has whitespace,synonym,lowercase and stopwords in it. Thanks, Vibhor -- View this message in context: http://lucene.472066.n3.nabble.com/Issues-in-the-Fuzzy-Query-tp4072125p4072151.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Issues in the Fuzzy Query !
In Solr 4.x, FuzzyQuery has switch to using an integer editing distance, with a maximum of 2. Your 0.8 may have gotten mapped to a distance of 0, or maybe 1. Switch to using 1 or 2. This new implementation is much faster (FST), even if it is somewhat less flexible. See: http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/search/FuzzyQuery.html -- Jack Krupansky -Original Message- From: vibhoreng04 Sent: Friday, June 21, 2013 10:41 AM To: solr-user@lucene.apache.org Subject: RE: Issues in the Fuzzy Query ! Hi , Below is what I am passing to solr .Only the fuzzy part is creating the problem for me- {!lucene q.op=OR}(TRIGRAM_FIELDNAME1:(FRANK INDIANO))^0.82 OR pkey: OR ((FIELDNAME1:FRANK~0.80) AND (FIELDNAME1:INDIANO~0.80))^0.80 Also the field type has whitespace,synonym,lowercase and stopwords in it. Thanks, Vibhor -- View this message in context: http://lucene.472066.n3.nabble.com/Issues-in-the-Fuzzy-Query-tp4072125p4072151.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Issues in the Fuzzy Query !
Hi Mark, What you said is correct . But still if I do an AND operation the fussy query doesn't work.Surprisingly OR is working perfectly but that does not give me what I want. {!lucene q.op=OR}(TRIGRAM_FIELDNAME1:(FRANK INDIANO))^0.82 OR pkey: OR ((FIELDNAME1:FRANK~2)* AND *(FIELDNAME1:INDIANO~2))^0.80 Above query does not provide me any results. But the below query- {!lucene q.op=OR}(TRIGRAM_FIELDNAME1:(FRANK INDIANO))^0.82 OR pkey: OR ((FIELDNAME1:FRANK~2)* OR *(FIELDNAME1:INDIANO~2))^0.80 Shows the results . Regards, VIbhor -- View this message in context: http://lucene.472066.n3.nabble.com/Issues-in-the-Fuzzy-Query-tp4072125p4072173.html Sent from the Solr - User mailing list archive at Nabble.com.