Re: Keyword analyzer will turn query to lowercase

2016-09-22 Thread Cam Bazz
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. >

Keyword analyzer will turn query to lowercase

2016-09-22 Thread Cam Bazz
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.

Re: Can't get case insensitive keyword analyzer to work

2014-08-12 Thread Milind
= 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

2014-08-12 Thread Jack Krupansky
: 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

Re: Can't get case insensitive keyword analyzer to work

2014-08-12 Thread Christoph Kaser
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

Re: Can't get case insensitive keyword analyzer to work

2014-08-11 Thread Milind
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

Re: Can't get case insensitive keyword analyzer to work

2014-08-11 Thread Milind
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

Can't get case insensitive keyword analyzer to work

2014-08-09 Thread Milind
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

Re: LUCENE_35 index keyword analyzer only doesn't like indexed sentences

2012-01-16 Thread Ian Lea
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:/

LUCENE_35 index keyword analyzer only doesn't like indexed sentences

2012-01-16 Thread ejblom
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

Re: Keyword Analyzer

2011-02-18 Thread Ian Lea
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

Re: Keyword Analyzer

2011-02-18 Thread Ganesh
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

Re: Keyword Analyzer

2011-02-18 Thread Ian Lea
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

Keyword Analyzer

2011-02-18 Thread Ganesh
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