[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to