_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:
> >
();
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
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
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
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
>>> >> Romer".But
>> >>> >> > When i do a Search,it is not returning Hits.This Problem I am
>> facing
>> >>> is
>> >>> >> not
>> >>> >> > for all phrases
>> >>> >> > Th
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
>> >> > instead of geoffrey.seekceil is working properly for many phrases
>>> though.
>>> >> >
>>> >> > What could be the problem..please kindly suggest.
>>> >> >
>>> >> >
>>> >> >
>&
the problem..please kindly suggest.
>> >> >
>> >> >
>> >> >
>> >> > On Fri, Sep 27, 2013 at 6:58 PM, Allison, Timothy B. <
>> talli...@mitre.org
>> >> >wrote:
>> >> >
>> >>
; >> >> 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
;> q.extractTerms(terms);
>> >> Term[] arr = terms.toArray(new Term[terms.size()]);
>> >> MultiPhraseQuery mpq = new MultiPhraseQuery();
>> >> mpq.add(new Term("field", "microsoft");
>> >> mpq.add(arr);
>> >>
>>
.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
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
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
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
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
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
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
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
19 matches
Mail list logo