Hmm, looks like I'm missing something here as I cannot get this to work. My need is as follows. From my application, I need to issue a generic search which is limited to a set of fields based on the group the user belongs to. For example, user-1 is in group-A which has default fields of F1, F2, F3. User-2 is in group-B which has default fields of F2, F3, F5, etc. What I tried to do is create multiple request handlers solrconfig.xml like so:
<requestHandler name="/select_group_a" class="solr.SearchHandler"> <lst name="defaults"> <str name="echoParams">explicit</str> <int name="rows">20</int> <str name="df">F1,F2,F3</str> <str name="fl">id,score</str> </lst> </requestHandler> And <requestHandler name="/select_group_a" class="solr.SearchHandler"> <lst name="defaults"> <str name="echoParams">explicit</str> <int name="rows">20</int> <str name="df">F2,F3,F5</str> <str name="fl">id,score</str> </lst> </requestHandler> However, this isn't working because whatever is in "df" is being treated as single field name. How can I achieve my need? Note, I want to avoid a URL base solution (sending the list of fields over HTTP) because the list of fields could be large (1000+) and thus I will exceed GET limit quickly (does Solr support POST for searching, if so, than I can use URL base solution?) Thanks in advance. Steve On Wed, May 13, 2015 at 2:29 PM, Erik Hatcher <erik.hatc...@gmail.com> wrote: > No, there is no requirement for having a copyField of any kind. > > > — > Erik Hatcher, Senior Solutions Architect > http://www.lucidworks.com <http://www.lucidworks.com/> > > > > > > On May 13, 2015, at 1:50 PM, Steven White <swhite4...@gmail.com> wrote: > > > > I don't have a need for Edismax. That said, do I still have a need for > > copyField into a default-field? > > > > Steve > > > > On Wed, May 13, 2015 at 11:13 AM, Alessandro Benedetti < > > benedetti.ale...@gmail.com> wrote: > > > >> I think with a proper configuration of the Edismax query parser and a > >> proper management of field boosting, > >> > >> it's much more precise to use the list of interesting fields than a big > >> blob copy field. > >> > >> Cheers > >> > >> 2015-05-13 15:54 GMT+01:00 Steven White <swhite4...@gmail.com>: > >> > >>> Hi Everyone, > >>> > >>> In my search need, I will always be using df to specify the list of > >> fields > >>> a search will be done in (the list of fields is group based which my > >>> application defines). > >>> > >>> Given this, is there any reason to use copyField to copy the data into > a > >>> single master-field to search against? Am I losing any thing by not > >> using > >>> copyField? > >>> > >>> Thanks, > >>> > >>> Steve > >>> > >> > >> > >> > >> -- > >> -------------------------- > >> > >> Benedetti Alessandro > >> Visiting card : http://about.me/alessandro_benedetti > >> > >> "Tyger, tyger burning bright > >> In the forests of the night, > >> What immortal hand or eye > >> Could frame thy fearful symmetry?" > >> > >> William Blake - Songs of Experience -1794 England > >> > >