rched for userAgent:Moz* the above code will output:
>
> Info: userAgent:Mo*
> Info: userAgent:mo*
>
> The keyword analyzer is clearly turning the query string into lower case.
>
> Is there a way to avoid it? The index is case sensitive (it wont any
> documents staring with mo*)
> but the keyword analyzer turns everything into lower case.
>
> Best Regards,
> C.
>
erAgent:mo*
The keyword analyzer is clearly turning the query string into lower case.
Is there a way to avoid it? The index is case sensitive (it wont any
documents staring with mo*)
but the keyword analyzer turns everything into lower case.
Best Regards,
C.
= theDoc.getField("sn");
>>> TokenStream theTokenStream = theField.tokenStream(theAnalyzer);
>>> System.out.println(theTokenStream);
>>>
>>> produces the following output
>>> SN345-B21
>>> LowerCaseFilter@5
: Re: Can't get case insensitive keyword analyzer to work
Hello Milind,
if you don't set the field to be tokenized, no analyzer will be used and
the field's contents will be stored "as-is", i.e. case sensitive.
It's the analyzer's job to tokenize the input, so i
does not work. Anything obvious popping out for anyone?
On Sat, Aug 9, 2014 at 4:39 PM, Milind wrote:
I looked at a couple of examples on how to get keyword analyzer to be
case insensitive but I think I missed something since it's not working for
me.
In the code below, I'm indexin
9, 2014 at 4:39 PM, Milind wrote:
>
>> I looked at a couple of examples on how to get keyword analyzer to be
>> case insensitive but I think I missed something since it's not working for
>> me.
>>
>> In the code below, I'm indexing text in upper case and s
g 9, 2014 at 4:39 PM, Milind wrote:
> I looked at a couple of examples on how to get keyword analyzer to be case
> insensitive but I think I missed something since it's not working for me.
>
> In the code below, I'm indexing text in upper case and searching in lower
> case. Bu
I looked at a couple of examples on how to get keyword analyzer to be case
insensitive but I think I missed something since it's not working for me.
In the code below, I'm indexing text in upper case and searching in lower
case. But I get back no hits. Do I need to something more whil
ld.Store.YES,
> Field.Index.ANALYZED));
>
> Pretty rivial right?
>
> Worked fine for my old (2.9) index but fails for 3.5... am I missing a very
> important setting?
>
> Thanks in advance!
>
> EJ Blom
>
>
>
> --
> View this message in context:
> http:/
oLowerCase(), Field.Store.YES,
Field.Index.ANALYZED));
Pretty rivial right?
Worked fine for my old (2.9) index but fails for 3.5... am I missing a very
important setting?
Thanks in advance!
EJ Blom
--
View this message in context:
http://lucene.472066.n3.nabble.com/LUCENE-35-index-keyword-analyzer-only-do
gt;
>
> - Original Message -
> From: "Ian Lea"
> To:
> Sent: Friday, February 18, 2011 4:34 PM
> Subject: Re: Keyword Analyzer
>
>
> Presumably because without the quotes the parser is splitting it up
> into 2 terms. Why bother parsing it? Just build the
Exactly. QueryParser is splitting it in to two words.
>>Just build the query directly.
TermQuery or PhraseQuery?
Regards
Ganesh
- Original Message -
From: "Ian Lea"
To:
Sent: Friday, February 18, 2011 4:34 PM
Subject: Re: Keyword Analyzer
Presumably because wi
Presumably because without the quotes the parser is splitting it up
into 2 terms. Why bother parsing it? Just build the query directly.
--
Ian.
On Fri, Feb 18, 2011 at 10:38 AM, Ganesh wrote:
> Hello all,
>
> I am using Keyword analyzer to index a field and while using queryparser
Hello all,
I am using Keyword analyzer to index a field and while using queryparser, I am
using the same analyzer. I am indexing the text Hello world and while
searching using queryparser.parse it is not returning me any results. I need to
use the text within the codes qp.parse("Hello
14 matches
Mail list logo