Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
-- Jack Krupansky -Original Message- From: Bill Chesky Sent: Friday, August 03, 2012 5:35 PM To: java-user@lucene.apache.org Subject: RE: Analyzer on query question Thanks for the help everybody. We're using 3.0.1 so I couldn't do exactly what Simon and Jack suggested. Bu

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 4:03 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Simon gave sample code for analyzing a multi-term string. Here's some pseudo-code (hasn't been compiled to check it) to analyze a

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
gt;BytesRef bytes = termAtt.getBytesRef(); >>return new Term(BytesRef.deepCopyOf(bytes)); >> } else >>return null; >> // TODO: Close the StringReader >> // TODO: Handle terms that analyze into multiple terms (e.g., embedded >> punctuation) >> } &

Re: Analyzer on query question

2012-08-03 Thread Robert Muir
ew Term(BytesRef.deepCopyOf(bytes)); > } else >return null; > // TODO: Close the StringReader > // TODO: Handle terms that analyze into multiple terms (e.g., embedded > punctuation) > } > > -- Jack Krupansky > > -Original Message----- From: Bill Chesky > Sent

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
ll Chesky Sent: Friday, August 03, 2012 2:55 PM To: java-user@lucene.apache.org Subject: RE: Analyzer on query question Ian/Jack, Ok, thanks for the help. I certainly don't want to take a cheap way out, hence my original question about whether this is the right way to do this. Jack, you

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
this I'd greatly appreciate it. regards, Bill -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 1:22 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill, the re-parse of Query.toString will work pro

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
cause term analysis such as stemming) becomes unnecessary and risky if you are not very careful or very lucky. -- Jack Krupansky -Original Message- From: Ian Lea Sent: Friday, August 03, 2012 1:12 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
; So I don't see the advantage to doing it this way over the original method. > I just don't know if the original way I described is wrong or will give me > bad results. > > thanks for the help, > > Bill > > -Original Message- > From: Ian Lea [mailto:i

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
ier way to associate the correct analyzer with these > types of queries? > > Bill > > -Original Message- > From: Simon Willnauer [mailto:simon.willna...@gmail.com] > Sent: Friday, August 03, 2012 3:43 AM > To: java-user@lucene.apache.org; Bill Chesky > Subject: R

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
rong to do it the way I described in my original email? Will it give me incorrect results? Bill -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 9:33 AM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill,

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
ease. We really do need a wiki page for Lucene term analysis. -- Jack Krupansky -Original Message- From: Bill Chesky Sent: Friday, August 03, 2012 9:19 AM To: simon.willna...@gmail.com ; java-user@lucene.apache.org Subject: RE: Analyzer on query question Thanks Simon, Unfortunately,

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
Term("title", "foo")); > phraseQuery.add(new > Term("title", "bar")); > > Is there really no easier way to associate the correct analyzer with these > types of queries? > > Bill > >

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
types of queries? Bill -Original Message- From: Simon Willnauer [mailto:simon.willna...@gmail.com] Sent: Friday, August 03, 2012 3:43 AM To: java-user@lucene.apache.org; Bill Chesky Subject: Re: Analyzer on query question On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky wrote: > Hi, >

Re: Analyzer on query question

2012-08-03 Thread Simon Willnauer
On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky wrote: > Hi, > > I understand that generally speaking you should use the same analyzer on > querying as was used on indexing. In my code I am using the SnowballAnalyzer > on index creation. However, on the query side I am building up a complex > Bo

Analyzer on query question

2012-08-02 Thread Bill Chesky
Hi, I understand that generally speaking you should use the same analyzer on querying as was used on indexing. In my code I am using the SnowballAnalyzer on index creation. However, on the query side I am building up a complex BooleanQuery from other BooleanQuerys and/or PhraseQuerys on sever