You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (Commented JIRA)" <ji...@apache.org> on 2012/01/21 12:20:39 UTC

[jira] [Commented] (SOLR-3045) eDismax: Allow virtual fields

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

Jan Høydahl commented on SOLR-3045:
-----------------------------------

Alternatively, Hoss' suggestion from SOLR-3026, with per-field override syntax for the virtual fields that will cause DMQ sub-queries. I like this syntax better than mine :)

{noformat}
 q=elephant title:dumbo who:george
  &qf=title^3 firstname lastname^2 description^2 catchall
  &uf=title^5 who^2 *
  &f.who.qf=firstname lastname^10
{noformat}
                
> eDismax: Allow virtual fields
> -----------------------------
>
>                 Key: SOLR-3045
>                 URL: https://issues.apache.org/jira/browse/SOLR-3045
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Jan Høydahl
>
> Imagine a one-field yellow page search using eDisMax across fields
> {noformat}
> qf=firstname middlename lastname companyname category^10.0 subcategory products address street zip city^5.0 state
> {noformat}
> Now this of course works well. But what if I want to offer my users fielded search on "who", "what" and "where".
> A way to do this now is copyField into three new fields with these names. But then you lose the internal weight between the sub fields.
> A more elegant way would be allowing virtual field names mapping to multiple fields, so user can search where:london and match address, street, zip, city or state automatically.

--
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