Re: Problem with MultiPhrase Query in Lucene 4.3

2013-10-03 Thread VIGNESH S
_args[1]); > } > } > > > On Thu, Oct 3, 2013 at 4:10 PM, VIGNESH S wrote: > > Hi, > > > > sorry.. thats my typo.. > > > > Its not failing because of that > > > > > > On Thu, Oct 3, 2013 at 8:17 PM, Ian Lea wrote: > >

Re: Problem with MultiPhrase Query in Lucene 4.3

2013-10-03 Thread Ian Lea
(); t.test(_args[0], _args[1]); } } On Thu, Oct 3, 2013 at 4:10 PM, VIGNESH S wrote: > Hi, > > sorry.. thats my typo.. > > Its not failing because of that > > > On Thu, Oct 3, 2013 at 8:17 PM, Ian Lea wrote: > >> Are you sure it's not failing because

Re: Problem with MultiPhrase Query in Lucene 4.3

2013-10-03 Thread VIGNESH S
t; > Hi, > > > > I am Trying to do Multiphrase Query in Lucene 4.3. It is working Perfect > > for all scenarios except the below scenario. > > When I try to Search for a phrase which is preceded by any punctuation,it > > is not working.. > > > > Text

Re: Problem with MultiPhrase Query in Lucene 4.3

2013-10-03 Thread Ian Lea
Are you sure it's not failing because "adhoc" != "ad-hoc"? -- Ian. On Thu, Oct 3, 2013 at 3:07 PM, VIGNESH S wrote: > Hi, > > I am Trying to do Multiphrase Query in Lucene 4.3. It is working Perfect > for all scenarios except the below scenario. > Wh

Problem with MultiPhrase Query in Lucene 4.3

2013-10-03 Thread VIGNESH S
Hi, I am Trying to do Multiphrase Query in Lucene 4.3. It is working Perfect for all scenarios except the below scenario. When I try to Search for a phrase which is preceded by any punctuation,it is not working.. TextContent: Dremel is a scalable, interactive ad-hoc query system for analysis of

Re: Multiphrase Query in Lucene 4.3

2013-10-03 Thread Ian Lea
>>> >> Romer".But >> >>> >> > When i do a Search,it is not returning Hits.This Problem I am >> facing >> >>> is >> >>> >> not >> >>> >> > for all phrases >> >>> >> > Th

Re: Multiphrase Query in Lucene 4.3

2013-10-03 Thread VIGNESH S
y it is not able to find "geoffrey". I confirmed > >>> this > >>> >> by > >>> >> > doing trm.seekCeil(new BytesRef("Geoffrey")) and then and then > when > >>> i > >>> >> > do String s = trm.term().u

Re: Multiphrase Query in Lucene 4.3

2013-10-03 Thread Ian Lea
>> >> > instead of geoffrey.seekceil is working properly for many phrases >>> though. >>> >> > >>> >> > What could be the problem..please kindly suggest. >>> >> > >>> >> > >>> >> > >&

Re: Multiphrase Query in Lucene 4.3

2013-10-02 Thread VIGNESH S
the problem..please kindly suggest. >> >> > >> >> > >> >> > >> >> > On Fri, Sep 27, 2013 at 6:58 PM, Allison, Timothy B. < >> talli...@mitre.org >> >> >wrote: >> >> > >> >>

Re: Multiphrase Query in Lucene 4.3

2013-10-02 Thread VIGNESH S
; >> >> 1) An alternate method to your original question would be to do > >> something > >> >> like this (I haven't compiled or tested this!): > >> >> > >> >> Query q = new PrefixQuery(new Term("field", &quo

Re: Multiphrase Query in Lucene 4.3

2013-09-30 Thread Ian Lea
;> q.extractTerms(terms); >> >> Term[] arr = terms.toArray(new Term[terms.size()]); >> >> MultiPhraseQuery mpq = new MultiPhraseQuery(); >> >> mpq.add(new Term("field", "microsoft"); >> >> mpq.add(arr); >> >> >>

Re: Multiphrase Query in Lucene 4.3

2013-09-30 Thread VIGNESH S
.toArray(new Term[terms.size()]); > >> MultiPhraseQuery mpq = new MultiPhraseQuery(); > >> mpq.add(new Term("field", "microsoft"); > >> mpq.add(arr); > >> > >> > >> 2) At a higher level, do you need to generate your query > pro

Re: Multiphrase Query in Lucene 4.3

2013-09-30 Thread Ian Lea
d.parser.QueryParser >> c) experimental: >> http://issues.apache.org/jira/browse/LUCENE-5205 >> >> >> -Original Message- >> From: VIGNESH S [mailto:vigneshkln...@gmail.com] >> Sent: Friday, September 27, 2013 3:33 AM >> To: java-user@lucene.apache.or

Re: Multiphrase Query in Lucene 4.3

2013-09-29 Thread VIGNESH S
ComplexPhraseQueryParser > b) SurroundQueryParser: oal.queryparser.surround.parser.QueryParser > c) experimental: > http://issues.apache.org/jira/browse/LUCENE-5205 > > > -Original Message- > From: VIGNESH S [mailto:vigneshkln...@gmail.com] > Sent: Friday, September

RE: Multiphrase Query in Lucene 4.3

2013-09-27 Thread Allison, Timothy B.
lexPhraseQueryParser b) SurroundQueryParser: oal.queryparser.surround.parser.QueryParser c) experimental: http://issues.apache.org/jira/browse/LUCENE-5205 -Original Message- From: VIGNESH S [mailto:vigneshkln...@gmail.com] Sent: Friday, September 27, 2013 3:33 AM To: java-user@lucene.apache

Re: Multiphrase Query in Lucene 4.3

2013-09-27 Thread VIGNESH S
Hi, The word i am giving is "Romer Geoffrey ".The Word is in the Field. trm.seekCeil(new BytesRef("Geoffrey")) and then when i do String s = trm.term().utf8ToString(); and hence It is giving a diffrent word..I think this is why my multiphrasequery is not giving desired results. What may be the

Re: Multiphrase Query in Lucene 4.3

2013-09-26 Thread VIGNESH S
Hi Lan, Thanks for your Reply. I am doing similar to this only..In MultiPhraseQuery object actual phrase is going proper but it is not returning any hits.. In Lucene 3.6,I implemented the same logic and it is working. In Lucene 4.3,I implemented the Index for that using FieldType offsetsType

Re: Multiphrase Query in Lucene 4.3

2013-09-26 Thread Ian Lea
I use the code below to do something like this. Not exactly what you want but should be easy to adapt. public List findTerms(IndexReader _reader, String _field) throws IOException { List l = new ArrayList(); Fields ff = MultiFields.getFields(_reader); Terms tr

Multiphrase Query in Lucene 4.3

2013-09-25 Thread VIGNESH S
Hi, In the Example of Multiphrase Query it is mentioned "To use this class, to search for the phrase "Microsoft app*" first use add(Term) on the term "Microsoft", then find all terms that have "app" as prefix using IndexReader.terms(Term), and use MultiPhraseQuery.add(Term[] terms) to add them to