lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Updated) (JIRA) <>
Subject [jira] [Updated] (SOLR-3101) Add an operator to edismax for word order (Proximity / NEAR)
Date Wed, 11 Apr 2012 12:57:17 GMT


Jan Høydahl updated SOLR-3101:

    Fix Version/s: 4.0
          Summary: Add an operator to edismax for word order (Proximity / NEAR)  (was: Add
an operator to edismax for word order)

Suggested syntax:

A NEAR/N B      - e.g. foo NEAR/5 bar will find bar within 5 positions from foo, same as "foo
A ONEAR/N B     - ordered near, finds B within 5 positions *after* A

A question is if span queries allow us to do  more complex proximity expressions like {{"a
brown fox" NEAR ("blue fence" OR "green gate")}}
> Add an operator to edismax for word order (Proximity / NEAR)
> ------------------------------------------------------------
>                 Key: SOLR-3101
>                 URL:
>             Project: Solr
>          Issue Type: Sub-task
>          Components: query parsers
>            Reporter: Mike
>             Fix For: 4.0
>   Original Estimate: 4h
>  Remaining Estimate: 4h
> A project I'm working on requires *word order* searching. The users are accustomed to
Sphinx search, and expect a query like [ A << B ] to return only documents that contain
the term A before the term B.
> I believe this can currently be done with the surround parser (SOLR-2703), but we lack
an operator for it. It would be great to add it, so that word order searches can be combined
by users into sophisticated queries. 
> Note that this should also support a query like [ A << A], which would require
that the term be in the document twice (the first instance before the second).
> This issue is part of a meta issue, SOLR-3028, that is requesting two other operators
in edismax (quorum search and exact match).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message