RE: Strange behavior for certain words
Hi, Thanks for your response. Attached are the Schema.xml and sample docs that were indexed. The query and response are as below. The attachment Prodsku4270257.xml has a field "paymenttype" whose value is 'prepaid'. query: q=prepaid&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=json&debugQuery=on&explainOther=&hl=on But you are populating your text field from deviceType, features, description and color. paymentType is not copied into text. So this behavior is normal. Either add this copy field declaration Or query directly this field: q=paymentType:prepaid
RE: Strange behavior for certain words
Hi Rama, What field types are these Title and Description? You may go to SOLR admin console and try "Analysis", and select the field type that you have used for Title and Description and provide those words Prepaid and Postpaid in the indexing analyzer and see how is it storing the information. regards, Naga Ranjan -Original Message- From: RamaKrishna Atmakur [mailto:ramkrishn...@hotmail.com] Sent: Thursday, May 13, 2010 5:57 AM To: solr-user@lucene.apache.org Subject: Strange behavior for certain words Hi, We are trying to use SOLR for searching our catalog online and during QA came across a interesting case where SOLR is not returning results that it should. Specificially, we have indexed things like "Title" and "Description", of the words in the Title happens to be "Prepaid' and "Postpaid". However when we search on those words, SOLR does not return any results. But if we search on some other words in the same title in which the word "Prepaid" occurs then the correct results are returned. In fact SOLR even returns the result count for the Prepaid and Postpaid facets. We know that there are no synonyms associated with both those words and these words are also not in any other list such as stopwords.txt etc. Any idea as to why this should be happening ? Thanks in advance, Rama
RE: Strange behavior for certain words
Hi, Thanks for your response. Attached are the Schema.xml and sample docs that were indexed. The query and response are as below. The attachment Prodsku4270257.xml has a field "paymenttype" whose value is 'prepaid'. query: q=prepaid&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=json&debugQuery=on&explainOther=&hl=on Result: { "responseHeader":{ "status":0, "QTime":0, "params":{ "wt":"json", "debugQuery":"on", "start":"0", "rows":"10", "explainOther":"", "indent":"on", "fl":"*,score", "hl":"on", "qt":"standard", "version":"2.2", "q":"prepaid", "hl.fl":""}}, "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[] }, "highlighting":{}, "debug":{ "rawquerystring":"prepaid", "querystring":"prepaid", "parsedquery":"text:prepaid", "parsedquery_toString":"text:prepaid", "explain":{}, "QParser":"OldLuceneQParser", "timing":{ "time":0.0, "prepare":{ "time":0.0, "org.apache.solr.handler.component.QueryComponent":{ "time":0.0}, "org.apache.solr.handler.component.FacetComponent":{ "time":0.0}, "org.apache.solr.handler.component.MoreLikeThisComponent":{ "time":0.0}, "org.apache.solr.handler.component.HighlightComponent":{ "time":0.0}, "org.apache.solr.handler.component.DebugComponent":{ "time":0.0}}, "process":{ "time":0.0, "org.apache.solr.handler.component.QueryComponent":{ "time":0.0}, "org.apache.solr.handler.component.FacetComponent":{ "time":0.0}, "org.apache.solr.handler.component.MoreLikeThisComponent":{ "time":0.0}, "org.apache.solr.handler.component.HighlightComponent":{ "time":0.0}, "org.apache.solr.handler.component.DebugComponent":{ "time":0.0} Thanks and Regards Rama K Atmakur. > Date: Wed, 12 May 2010 20:46:11 -0400 > Subject: Re: Strange behavior for certain words > From: erickerick...@gmail.com > To: solr-user@lucene.apache.org > > Hmmm, there's not much information to go on here. > You might review this page: > http://wiki.apache.org/solr/UsingMailingLists > and post with more information. At minimum, > the field definitions, the query output (include > &debugQuery=on), perhaps what comes out > of the analysis admin page for both indexing > and querying the problem text, and whatever > else you can think of that would help analyze the > problem. > > Best > Erick > > On Wed, May 12, 2010 at 8:26 PM, RamaKrishna Atmakur < > ramkrishn...@hotmail.com> wrote: > > > > > Hi, > > We are trying to use SOLR for searching our catalog online and during QA > > came across a interesting case where SOLR is not returning results that it > > should. > > > > Specificially, we have indexed things like "Title" and "Description", of > > the words in the Title happens to be "Prepaid' and "Postpaid". However when > > we search on those words, SOLR does not return any results. > > But if we search on some other words in the same title in which the word > > "Prepaid" occurs then the correct results are returned. In fact SOLR even > > returns the result count for the Prepaid and Postpaid facets. > > > > We know that there are no synonyms associated with both those words and > > these words are also not in any other list such as stopwords.txt etc. > > > > Any idea as to why this should be happening ? > > > > Thanks in advance, > > Rama > >
Re: Strange behavior for certain words
Hmmm, there's not much information to go on here. You might review this page: http://wiki.apache.org/solr/UsingMailingLists and post with more information. At minimum, the field definitions, the query output (include &debugQuery=on), perhaps what comes out of the analysis admin page for both indexing and querying the problem text, and whatever else you can think of that would help analyze the problem. Best Erick On Wed, May 12, 2010 at 8:26 PM, RamaKrishna Atmakur < ramkrishn...@hotmail.com> wrote: > > Hi, > We are trying to use SOLR for searching our catalog online and during QA > came across a interesting case where SOLR is not returning results that it > should. > > Specificially, we have indexed things like "Title" and "Description", of > the words in the Title happens to be "Prepaid' and "Postpaid". However when > we search on those words, SOLR does not return any results. > But if we search on some other words in the same title in which the word > "Prepaid" occurs then the correct results are returned. In fact SOLR even > returns the result count for the Prepaid and Postpaid facets. > > We know that there are no synonyms associated with both those words and > these words are also not in any other list such as stopwords.txt etc. > > Any idea as to why this should be happening ? > > Thanks in advance, > Rama >