Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The "ExtendedDisMax" page has been changed by JackKrupansky:
http://wiki.apache.org/solr/ExtendedDisMax?action=diff&rev1=12&rev2=13

  
  The syntax for aliasing is {{{f.myalias.qf=realfield}}}. A user query for 
{{{myalias:foo}}} will be queried as {{{realfield:foo}}}.
  
- The alias may also refer to multiple fields, with boost factors, by listing 
the field names with a space between them, and the optional boost factor 
immediately following the field name and the caret ('^') operator. Let's 
imagine you have a schema with fields {{{name, namealias, address, city, 
state}}}, and you want to provide a 'who' and 'where' search. You could then 
configure aliases like this: 
{{{&f.who.qf=name^5.0+namealias^2.0&f.where.qf=address^1.0+city^10.0+state}}}. 
Any user query for {{{who:foo}}} would expand to a DisMax query across fields 
name and namealias. If you further want to hide the real field names, you can 
combine this with "User Fields" feature, and say {{{&uf=who,where}}} to only 
allow fielded search for those two aliases.
+ The alias may also refer to multiple fields, with boost factors, by listing 
the field names with a space between them, and the optional boost factor 
immediately following the field name and the caret ('{{{^}}}') operator. Let's 
imagine you have a schema with fields {{{name, namealias, address, city, 
state}}}, and you want to provide a 'who' and 'where' search. You could then 
configure aliases like this: 
{{{&f.who.qf=name^5.0+namealias^2.0&f.where.qf=address^1.0+city^10.0+state}}}. 
Any user query for {{{who:foo}}} would expand to a DisMax query across fields 
name and namealias. If you further want to hide the real field names, you can 
combine this with "User Fields" feature, and say {{{&uf=who,where}}} to only 
allow fielded search for those two aliases.
  
  
  == Parameters ==

Reply via email to