lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3758) Allow the ComplexPhraseQueryParser to search order or un-order proximity queries.
Date Mon, 13 Feb 2012 17:29:02 GMT

    [ 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


Mime
View raw message