Re: Mapping a field name before queryParser

2014-06-07 Thread Alexandre Rafalovitch
Could a custom Search Components chain be used to modify the request before it hits the Query? I never used them myself, but it seems like potentially the right place. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating yo

Re: Mapping a field name before queryParser

2014-06-06 Thread Jack Krupansky
Oops... for your example it would be: f.brand_name.qf=brand -- Jack Krupansky -Original Message- From: Antoine LE FLOC'H Sent: Friday, June 6, 2014 6:54 PM To: solr-user@lucene.apache.org Subject: Re: Mapping a field name before queryParser OK thank you. I wanted to see w

Re: Mapping a field name before queryParser

2014-06-06 Thread Antoine LE FLOC'H
OK thank you. I wanted to see what's possible if we want to change our Solr query interface. It is used by client applications. I wanted to see if we can be backward compatible. On Sat, Jun 7, 2014 at 12:10 AM, Jack Krupansky wrote: > Edismax has field aliasing: > http://wiki.apache.org/solr/E

Re: Mapping a field name before queryParser

2014-06-06 Thread Jack Krupansky
Edismax has field aliasing: http://wiki.apache.org/solr/ExtendedDisMax#Field_aliasing_.2F_renaming f.my_alias.qf=actual_field f.brand.qf=brand_name -- Jack Krupansky -Original Message- From: Antoine LE FLOC'H Sent: Friday, June 6, 2014 5:56 PM To: solr-user@lucene.apache.org Subjec

Re: Mapping a field name before queryParser

2014-06-06 Thread Ahmet Arslan
Field aliasing exists when retrieving fields via fl parameter. But not when querying. Can you elaborate more your use case? On Saturday, June 7, 2014 12:57 AM, Antoine LE FLOC'H wrote: Hello, I have a query like the following where "brand" is a field in my schema: select?rows=1&start=0&sor