You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ahmet Arslan (JIRA)" <ji...@apache.org> on 2014/05/14 02:21:14 UTC

[jira] [Commented] (LUCENE-5664) New meaning of equal sign in StandardQueryParser

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

Ahmet Arslan commented on LUCENE-5664:
--------------------------------------

bq. query the exact value of a field 
Can you give an example? You mean values containing special characters? like ! || ? * ~  etc.

> New meaning of equal sign in StandardQueryParser
> ------------------------------------------------
>
>                 Key: LUCENE-5664
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5664
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/queryparser
>    Affects Versions: 4.5, 4.8
>            Reporter: Martin Blom
>         Attachments: LUCENE-5664.patch
>
>
> The StandardSyntaxParser.jj has (undocumented?) support for the <, <=, > and => operators that generate a TermRangeQueryNode. The equal operator, however, behaves just like the colon and produces a regular Term node instead of a TermRangeQueryNode.
> I've been using the attached patch in a project where we had to be able to query the exact value of a field and I'm hoping there is interest to apply it upstream.
> (Note that the colon operator works just as before, producing TermQuery or PhraseQuery nodes.)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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