You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Commented) (JIRA)" <ji...@apache.org> on 2012/02/13 18:29:02 UTC

[jira] [Commented] (LUCENE-3758) Allow the ComplexPhraseQueryParser to search order or un-order proximity queries.

    [ https://issues.apache.org/jira/browse/LUCENE-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206996#comment-13206996 ] 

Robert Muir commented on LUCENE-3758:
-------------------------------------

ok guys try to bare with me, since I don't know this thing at all:

Would this apply to both exact and sloppy phrase queries?

It seems to me, that instead of hardcoding inOrder to true, we should only set inOrder=true if its an exact phrase query
But if the user (not this qp itself, but the user actually used ~) supplied slop, then inOrder should be false.

This would better emulate the behavior of the regular lucene queryparser... I'm wondering if we even need an option
since it just seems like the way it should work.
                
> Allow the ComplexPhraseQueryParser to search order or un-order proximity queries.
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-3758
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3758
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/queryparser
>    Affects Versions: 4.0
>            Reporter: Tomás Fernández Löbbe
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3758.patch
>
>
> The ComplexPhraseQueryParser use SpanNearQuery, but always set the "inOrder" value hardcoded to "true". This could be configurable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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