You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Modassar Ather <mo...@industechinnovations.com> on 2014/03/05 08:39:24 UTC

Phrase search with ComplexPhraseQueryParser/SpanQueryParser.

Hi,

Phrases with stop words in them are not getting searched whereas a phrase
without it gets searched using ComplexPhraseQueryParser/SpanQueryParser.

SpanQueryParser reference: https://issues.apache.org/jira/browse/LUCENE-5205

The similar search works fine with classic parser which uses PhraseQuery as
it includes the position of terms for all the terms including stop words in
the query created.

Kindly provide your inputs on how the phrases with stop words can be
searched successfully in ComplexPhraseQueryParser/SpanQueryParser.

Thanks,
Modassar

Re: Phrase search with ComplexPhraseQueryParser/SpanQueryParser.

Posted by Modassar Ather <mo...@industechinnovations.com>.
Hi Ahmet,

As per your suggestion I have posted the request with example on
Lucene-5205 jira ticket.

Thanks,
Modassar


On Wed, Mar 5, 2014 at 8:44 PM, Ahmet Arslan <io...@yahoo.com> wrote:

> Hi Modassar,
>
> Can you post your request (with an example if possible) to lucene-5205
> jura ticket too? If you don't have an jira account, anyone can create one.
>
> Thanks,
> Ahmet
>
>
>
> On Wednesday, March 5, 2014 9:40 AM, Modassar Ather <
> modassar@industechinnovations.com> wrote:
> Hi,
>
> Phrases with stop words in them are not getting searched whereas a phrase
> without it gets searched using ComplexPhraseQueryParser/SpanQueryParser.
>
> SpanQueryParser reference:
> https://issues.apache.org/jira/browse/LUCENE-5205
>
> The similar search works fine with classic parser which uses PhraseQuery as
> it includes the position of terms for all the terms including stop words in
> the query created.
>
> Kindly provide your inputs on how the phrases with stop words can be
> searched successfully in ComplexPhraseQueryParser/SpanQueryParser.
>
> Thanks,
> Modassar
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Phrase search with ComplexPhraseQueryParser/SpanQueryParser.

Posted by Ahmet Arslan <io...@yahoo.com>.
Hi Modassar,

Can you post your request (with an example if possible) to lucene-5205 jura ticket too? If you don't have an jira account, anyone can create one. 

Thanks,
Ahmet



On Wednesday, March 5, 2014 9:40 AM, Modassar Ather <mo...@industechinnovations.com> wrote:
Hi,

Phrases with stop words in them are not getting searched whereas a phrase
without it gets searched using ComplexPhraseQueryParser/SpanQueryParser.

SpanQueryParser reference: https://issues.apache.org/jira/browse/LUCENE-5205

The similar search works fine with classic parser which uses PhraseQuery as
it includes the position of terms for all the terms including stop words in
the query created.

Kindly provide your inputs on how the phrases with stop words can be
searched successfully in ComplexPhraseQueryParser/SpanQueryParser.

Thanks,
Modassar


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org