Re: Searches with a period (.) in the query
On Wed, Sep 22, 2010 at 8:13 PM, Siddharth Powar wrote: > I am getting some weird output upon searching in solr. For certain searches > that have a period in the search term (e.g: q=ab.xyz) solr returns the > results perfectly, but for some other searches (e.g: q=ab.pqr) solr would > return 0 results even though it is present. On the other hand if the search > query is q=abpqr (without the period), solr returns the correct documents. > > The field type belongs to the class "solr.StrField". > > Please let me know if i can provide with more info. - add debugQuery=true to see what the resulting query that solr is searching with - are you sure the filedType is StrField? Can you show the actual request URLs for both queries above, along with the result (and please add debugQuery=true). -Yonik http://lucenerevolution.org Lucene/Solr Conference, Boston Oct 7-8
Re: Searches with a period (.) in the query
Siddharth, did you check tokenizer and filter behaviour from ../admin/analysis.jsp page. That would be quite informative to you. On Thu, Sep 23, 2010 at 6:42 PM, Siddharth Powar wrote: > Hey Ken, > > The filedType definition that I am using is: > sortMissingLast="true" omitNorms="true" /> > > Thanks, > Sid > > On Thu, Sep 23, 2010 at 5:29 AM, kenf_nc wrote: > >> >> Do you have any other Analyzers or Formatters involved? I use delimiters in >> certain string fields all the time. Usually a colon ":" or slash "/" but >> should be the same for a period. I've never seen this behavior. But if you >> have any kind of tokenizer or formatter involved beyond >> > omitNorms="true" /> >> then you may be introducing something extra to the party. >> >> What does your fieldType definition look like? >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1567666.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >
Re: Searches with a period (.) in the query
Hey Ken, The filedType definition that I am using is: Thanks, Sid On Thu, Sep 23, 2010 at 5:29 AM, kenf_nc wrote: > > Do you have any other Analyzers or Formatters involved? I use delimiters in > certain string fields all the time. Usually a colon ":" or slash "/" but > should be the same for a period. I've never seen this behavior. But if you > have any kind of tokenizer or formatter involved beyond > omitNorms="true" /> > then you may be introducing something extra to the party. > > What does your fieldType definition look like? > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1567666.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: Searches with a period (.) in the query
Do you have any other Analyzers or Formatters involved? I use delimiters in certain string fields all the time. Usually a colon ":" or slash "/" but should be the same for a period. I've never seen this behavior. But if you have any kind of tokenizer or formatter involved beyond then you may be introducing something extra to the party. What does your fieldType definition look like? -- View this message in context: http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1567666.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Searches with a period (.) in the query
Hey Ken, Thanks for the reply. Its not a case-sensitivity issue. I wonder if this is a bug in the way the data is indexed in solr as the behavior is not constant throughout searches of similar type when a period (.) is used. You think there could be some other issue? Thanks, Sid On Wed, Sep 22, 2010 at 6:18 PM, kenf_nc wrote: > > Could it be a case-sensitivity issue? The StrField type is not analyzed, > but > indexed/stored verbatim. (from the schema comments). If you are looking > for > ab.pqr but it is in fact ab.Pqr in the solr document, it wouldn't find it. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1565057.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: Searches with a period (.) in the query
Could it be a case-sensitivity issue? The StrField type is not analyzed, but indexed/stored verbatim. (from the schema comments). If you are looking for ab.pqr but it is in fact ab.Pqr in the solr document, it wouldn't find it. -- View this message in context: http://lucene.472066.n3.nabble.com/Searches-with-a-period-in-the-query-tp1564780p1565057.html Sent from the Solr - User mailing list archive at Nabble.com.
Searches with a period (.) in the query
Hi, I am getting some weird output upon searching in solr. For certain searches that have a period in the search term (e.g: q=ab.xyz) solr returns the results perfectly, but for some other searches (e.g: q=ab.pqr) solr would return 0 results even though it is present. On the other hand if the search query is q=abpqr (without the period), solr returns the correct documents. The field type belongs to the class "solr.StrField". Please let me know if i can provide with more info. Thanks, Sid