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
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
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
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
>
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
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
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
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
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?
>>
>> 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
>
>
> 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
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:
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
> 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:
>>
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
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
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:
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
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
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
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
21 matches
Mail list logo