solr field types and case sensitivity

2007-12-18 Thread Dryganets Sergey

can I change query analyzer for concrete request to solr?
ie: I want add option on my site use case-sensitive search or not for this
search request, but can't find any good solution ...

I think that create duplicates (index only fields with different analyzers
configuration) for each field it's bad idea ...

May be any one know good solution for this problem?

-- 
View this message in context: 
http://www.nabble.com/solr-field-types-and-case-sensitivity-tp14395912p14395912.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: solr field types and case sensitivity

2007-12-18 Thread Ryan McKinley

Dryganets Sergey wrote:

can I change query analyzer for concrete request to solr?
ie: I want add option on my site use case-sensitive search or not for this
search request, but can't find any good solution ...

I think that create duplicates (index only fields with different analyzers
configuration) for each field it's bad idea ...



yes, you would index a field twice - once with a LowerCaseFilter and 
once without.  That is a good solution.


ryan


Re: solr field types and case sensitivity

2007-12-18 Thread Dryganets Sergey



ryantxu wrote:
> 
> yes, you would index a field twice - once with a LowerCaseFilter and 
> once without.  That is a good solution.
> 

Hm... 
So I'm should create n*n indexes where n is search options count ...

Can I copy fields automatically?  

For example I have a field with name  and subset of fields with
prefixes or suffixes, so
can I use regexp to copy field.

Or may be I can describe "copy field policy" for a fieldType (as for me this
solution will be better - there are less efforts to add new search option)

-- 
View this message in context: 
http://www.nabble.com/solr-field-types-and-case-sensitivity-tp14395912p14411420.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: solr field types and case sensitivity

2008-01-11 Thread Dryganets Sergey



ryantxu wrote:
> 
> yes, you would index a field twice - once with a LowerCaseFilter and 
> once without.  That is a good solution.
> 

I implement this and now there are some strange problems:

1. highlighting not always properly work for not case sensitive search






   
 

you can find full schema on:
https://issues.apache.org/jira/browse/SOLR-444

I know a bad solution for this problem - store data for the both cs and ncs
fields
(but I don't want store also 200mb for each search option)

As for me in solr now too much problems with highlighting :(

As I understand to highlight properly lucene-highlighter needs Analyzer, but
Analyzer linked to field type.
So I think it's root of this problem ...

maybe anyone know a good solution? 
ie solve this problem with just configuration changes

2.
add following document:


 3
 Apples





fl=*,score&q=ncs_post_text:apple&start=0&rows=10&hl=true&hl.fl=post_text
return document with id=3, but not return any highlighting info
(appl, apple and apples return same result)

fl=*,score&q=cs_post_text:Apple&start=0&rows=10&hl=true&hl.fl=post_text
return nothing, request for Appl return nothing too

and just Apples word return result

I don't understand it ... I just remove lower case factory









-- 
View this message in context: 
http://www.nabble.com/solr-field-types-and-case-sensitivity-tp14395912p14751690.html
Sent from the Solr - User mailing list archive at Nabble.com.