Re: Searches with a period (.) in the query

2010-09-23 Thread kenf_nc

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 
fieldType name=string class=solr.StrField sortMissingLast=true
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

2010-09-23 Thread Siddharth Powar
Hey Ken,

The filedType definition that I am using is:
fieldType name=string class=solr.StrField
sortMissingLast=true omitNorms=true /

Thanks,
Sid

On Thu, Sep 23, 2010 at 5:29 AM, kenf_nc ken.fos...@realestate.com 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
fieldType name=string class=solr.StrField sortMissingLast=true
 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

2010-09-23 Thread Jak Akdemir
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
powar.siddha...@gmail.com wrote:
 Hey Ken,

 The filedType definition that I am using is:
 fieldType name=string class=solr.StrField
 sortMissingLast=true omitNorms=true /

 Thanks,
 Sid

 On Thu, Sep 23, 2010 at 5:29 AM, kenf_nc ken.fos...@realestate.com 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
    fieldType name=string class=solr.StrField sortMissingLast=true
 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.




Searches with a period (.) in the query

2010-09-22 Thread Siddharth Powar
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


Re: Searches with a period (.) in the query

2010-09-22 Thread kenf_nc

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

2010-09-22 Thread Siddharth Powar
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 ken.fos...@realestate.com 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.