Hi Alex, On Wed, Jan 23, 2013 at 3:44 PM, Alexandre Rafalovitch <arafa...@gmail.com>wrote:
> On Wed, Jan 23, 2013 at 8:38 AM, Eduard Moraru <enygma2...@gmail.com> > wrote: > > > "title:version author:SomeGuy content:content" > > > > which would get automagically expanded to: > > > > "(title_en:version OR title_fr:version) author:SomeGuy > (content_en:content > > OR content_fr:content)" > > > > Ignoring everything else, how is this different from eDisMax's field > combined with User Field setting? (haven't used them myself yet) > http://wiki.apache.org/solr/ExtendedDisMax#Field_aliasing_.2BAC8_renaming > Exactly what I needed. The field aliasing fits perfectly my scenario. Thanks a million! The only small but workable problem I have now is the same as https://issues.apache.org/jira/browse/SOLR-3598. When you are creating an alias for the field "who", you can't include the actual field in the list of alias like "f.who.qf=who,what,where" because you`ll get an "alias loop" exception. The workaround suggested in the issue is to rename your "who" field to something like "who_real" and rewrite the alias like "f.who.qf=who_real,what,where". This is a bit cumbersome and frankly annoying since your schema.xml will look weird. A way to avoid alias resolution for a field in the alias list and actually try to fetch the field from the index would have been great (like what the issue poster suggested), but anyway. If you have a better suggestion for the alias loop, please let me know, otherwise, thank you again for the quick and efficient reply. Cheers, Eduard > > Regards, > Alex. > > Personal blog: http://blog.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all at > once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) >