lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Updated) (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SOLR-3045) eDismax: Allow virtual fields
Date Sat, 21 Jan 2012 11:10:40 GMT

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

Jan Høydahl updated SOLR-3045:
------------------------------

    Description: 
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.

  was:
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. Imagine
uf extended further:
{noformat}
&uf=who:firstname,middlename,lastname^2.0,companyname what:category,subcategory,products
where:address,street,zip,city^10.0,state
{noformat}

This could probably be solved by adding each as a dismax sub-Query


One option: Imagine uf extended further:
{noformat}
&uf=who:firstname,middlename,lastname^2.0,companyname what:category,subcategory,products
where:address,street,zip,city^10.0,state
{noformat}

This could probably be solved by adding each as a dismax sub-Query
                
> 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


Mime
View raw message