Re: case-sensitive search

2005-11-17 Thread Erik Hatcher
On 17 Nov 2005, at 04:27, jibu mathew wrote: Is it possible to do both case-sensitive and non case-sensitive search on already indexed documents? If not, is there any way to implement it without making two indexes for each case? Please help me in this regard. On already indexed documents? N

RE: Case-sensitive search

2005-08-22 Thread Rajesh Munavalli
case queries we don't have to OR the queries. Rajesh Munavalli > -Original Message- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Monday, August 22, 2005 3:33 PM > To: java-user@lucene.apache.org > Subject: Re: Case-sensitive search > > > On Aug 2

Re: Case-sensitive search

2005-08-22 Thread Erik Hatcher
e is really no need to even have the case-sensitive parts there in the index or in the query. Erik Rajesh Munavalli -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 10:20 AM To: java-user@lucene.apache.org Subject: Re: Case-sensit

Re: Case-sensitive search

2005-08-22 Thread tareque
same position or not. > > Erik > > >> >> Rajesh Munavalli >> >> >>> -Original Message- >>> From: Erik Hatcher [mailto:[EMAIL PROTECTED] >>> Sent: Monday, August 22, 2005 10:04 AM >>> To: java-user@lucene.apache.org >

RE: Case-sensitive search

2005-08-22 Thread Rajesh Munavalli
ge- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Monday, August 22, 2005 10:20 AM > To: java-user@lucene.apache.org > Subject: Re: Case-sensitive search > > > On Aug 22, 2005, at 11:10 AM, Rajesh Munavalli wrote: > > You could also treat the case-sensitive

Re: Case-sensitive search

2005-08-22 Thread Erik Hatcher
rg Subject: Re: Case-sensitive search On Aug 22, 2005, at 10:40 AM, [EMAIL PROTECTED] wrote: Is there any way to index as case-sensitive and then, while searching, making the search case-sensitive and case-insensitive using the same index as needed? Not really. Terms in the index a

RE: Case-sensitive search

2005-08-22 Thread Rajesh Munavalli
4 AM > To: java-user@lucene.apache.org > Subject: Re: Case-sensitive search > > > On Aug 22, 2005, at 10:40 AM, [EMAIL PROTECTED] wrote: > > Is there any way to index as case-sensitive and then, while > searching, > > making the search case-sensitive and case-insensitive

Re: Case-sensitive search

2005-08-22 Thread Erik Hatcher
On Aug 22, 2005, at 10:40 AM, [EMAIL PROTECTED] wrote: Is there any way to index as case-sensitive and then, while searching, making the search case-sensitive and case-insensitive using the same index as needed? Not really. Terms in the index are ordered lexicographically, including case

RE: Case-sensitive search

2005-08-22 Thread Mordo, Aviran (EXP N-NANNATEK)
You'll need to have two fields in your index, one for case sensitive and one for case insensitive HTH Aviran http://www.aviransplace.com Is there any way to index as case-sensitive and then, while searching, making the search case-sensitive and case-insensitive using the same index as needed?

Re: Case-sensitive search

2005-08-22 Thread tareque
>> >> On Aug 18, 2005, at 6:22 PM, [EMAIL PROTECTED] wrote: >> On Thu, 2005-08-18 at 17:16, [EMAIL PROTECTED] wrote: > Thanks again! The analyzer is working now. But seems like > actually the > QueryParser I am using is probably converting the queries to > lowercase >

Re: Case-sensitive search

2005-08-19 Thread tareque
> > On Aug 18, 2005, at 6:22 PM, [EMAIL PROTECTED] wrote: > >>> On Thu, 2005-08-18 at 17:16, [EMAIL PROTECTED] wrote: >>> Thanks again! The analyzer is working now. But seems like actually the QueryParser I am using is probably converting the queries to lowercase first. Is

RE: Case-sensitive search

2005-08-19 Thread Peter Gelderbloem
I don't really need this at the moment, but need to know: Is it conceivable to make a configurable analyzer with dynamically added filters? Peter -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 19 August 2005 01:50 To: java-user@lucene.apache.org Subject: Re:

Re: Case-sensitive search

2005-08-18 Thread Erik Hatcher
On Aug 18, 2005, at 6:22 PM, [EMAIL PROTECTED] wrote: On Thu, 2005-08-18 at 17:16, [EMAIL PROTECTED] wrote: Thanks again! The analyzer is working now. But seems like actually the QueryParser I am using is probably converting the queries to lowercase first. Is there any way to stop that? He

Re: Case-sensitive search

2005-08-18 Thread tareque
> On Thu, 2005-08-18 at 17:16, [EMAIL PROTECTED] wrote: >> Thanks again! The analyzer is working now. But seems like actually the >> QueryParser I am using is probably converting the queries to lowercase >> first. Is there any way to stop that? Here is the line of code where I >> am >> parsing: >>

Re: Case-sensitive search

2005-08-18 Thread Luke Francl
On Thu, 2005-08-18 at 17:16, [EMAIL PROTECTED] wrote: > Thanks again! The analyzer is working now. But seems like actually the > QueryParser I am using is probably converting the queries to lowercase > first. Is there any way to stop that? Here is the line of code where I am > parsing: > > Query q

Re: Case-sensitive search

2005-08-18 Thread tareque
Thanks again! The analyzer is working now. But seems like actually the QueryParser I am using is probably converting the queries to lowercase first. Is there any way to stop that? Here is the line of code where I am parsing: Query query = QueryParser.parse(line, "contents", analyzer); As for anal

Re: Case-sensitive search

2005-08-18 Thread Erik Hatcher
On Aug 18, 2005, at 4:16 PM, [EMAIL PROTECTED] wrote: Thanks! I have used StopAnalyzer to index. Does it lower-case before indexing? I don't touch the query string before sending for searching, so the query string is not lower-cases. Pretty much all built-in Lucene analyzers lower-case:

Re: Case-sensitive search

2005-08-18 Thread tareque
Ok, seems like it does is a LowerCaseFilter. Is there any analyzer that do the same thing as StopAnalyzer does, except for lowering the case? Cuz StopAnalyzer best fits my purpose. > Thanks! I have used StopAnalyzer to index. Does it lower-case before > indexing? I don't touch the query string bef

Re: Case-sensitive search

2005-08-18 Thread tareque
Thanks! I have used StopAnalyzer to index. Does it lower-case before indexing? I don't touch the query string before sending for searching, so the query string is not lower-cases. > The search really is case sensitive, it's just that all input is > usually lower-cased, so it feels like it's case i

Re: Case-sensitive search

2005-08-18 Thread Erik Hatcher
On Aug 18, 2005, at 3:50 PM, [EMAIL PROTECTED] wrote: Is there any way to do a case-sensitive search? All Lucene searches are case-sensitive, actually. But most often a lowercasing analyzer is used. So the trick is to change the analysis process to not lowercase. It gets more fun when y

Re: Case-sensitive search

2005-08-18 Thread Otis Gospodnetic
The search really is case sensitive, it's just that all input is usually lower-cased, so it feels like it's case insensitive. In other words, don't lower-case your input before indexing, and don't lower-case your queries (i.e. pick an Analyzer that doesn't lower-case). Otis --- [EMAIL PROTECTED