lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Closed] (SOLR-2643) Allow multiple field aliases in ExtendedDisMaxQParser
Date Fri, 14 Oct 2016 11:04:20 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Høydahl closed SOLR-2643.
-----------------------------
    Resolution: Implemented

Closing this. Alias for edismax is already implemented, see https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser

{code}
f.name.qf=name last_name first_name
{code}

> Allow multiple field aliases in ExtendedDisMaxQParser
> -----------------------------------------------------
>
>                 Key: SOLR-2643
>                 URL: https://issues.apache.org/jira/browse/SOLR-2643
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 4.0-ALPHA
>            Reporter: Jamie Johnson
>
> The original DisMaxQParser seems to have support for handling multiple aliases so someone
could do query rewrite on more than just the default field.  If the ExtendedDisMaxQParser
supported this and exposed this capability we'd be able to build more powerful rewrite capabilities
such that could reduce the size of an index.  For instance say we have a scenario where we
have 3 fields first_name, last_name and name.  In this situation we don't completely control
the input, we may have first_name and last_name or just name.  In this case given 2 documents
as follows:
> Doc 1
> first_name: John
> last_name: Doe
> Doc 2
> name: Jane Doe
> if the user did a query on name:Doe we would be able to rewrite the query to return both
documents such that the query would be name:Doe OR first_name:Doe OR last_name:Doe



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message