Hello Alex,

I saw your example and took it as template for my needs.

I tried with the aliasing, but, maybe because I did it wrong, it does not 
work...

"error": {
    "msg": "undefined field all",
    "code": 400
  }

Here is a snippet of my solrconfig.xml:

...
<requestHandler name="/select" class="solr.SearchHandler">
                <lst name="defaults">
                        <str name="echoParams">explicit</str>
                </lst>
                <lst name="invariants">
                        <str name="f.all.qf">rmDocumentTitle rmDocumentArt 
rmDocumentClass rmDocumentSubclass rmDocumentCatName rmDocumentCatNameEn 
fullText</str>
                </lst>
        </requestHandler>
        
        <requestHandler name="/selectEN" class="solr.SearchHandler" >
          <lst name="defaults">
                        <str name="defType">edismax</str>
                        <str name="qf">fullText_en</str>
                        <str name="df">full_Text</str>
                        <str name="wt">json</str>
                        <str name="indent">true</str>
          </lst>
          <lst name="invariants">
                        <str name="fq">language:en</str>
                        <str name="f.fullText.qf">fullText_en</str>
                        <str name="f.all.qf">rmDocumentTitle rmDocumentArt 
rmDocumentClass rmDocumentSubclass rmDocumentCatName rmDocumentCatNameEn 
fullText_en</str>
                        <str name="uf">* -fullText_*</str>
                        <str name="fl">*,fullText:fullText_en</str>
          </lst>
        </requestHandler>
        
        <requestHandler name="/selectDE" class="solr.SearchHandler" >
          <lst name="defaults">
                        <str name="defType">edismax</str>
                        <str name="qf">fullText_de</str>
                        <str name="df">full_Text</str>
                        <str name="wt">json</str>
                        <str name="indent">true</str>
          </lst>
          <lst name="invariants">
                        <str name="fq">language:de</str>
                        <str name="f.fullText.qf">fullText_de</str>
                        <str name="f.all.qf">rmDocumentTitle rmDocumentArt 
rmDocumentClass rmDocumentSubclass rmDocumentCatName rmDocumentCatNameEn 
fullText_de</str>
                        <str name="uf">* -fullText_*</str>
                        <str name="fl">*,fullText:fullText_de</str>
          </lst>
        </requestHandler>
...

What am I missing/ doing wrong?


Regards,
Francesco

-----Original Message-----
From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] 
Sent: Freitag, 4. April 2014 11:08
To: solr-user@lucene.apache.org
Subject: Re: Query and field name with wildcard

Are you using eDisMax. That gives a lot of options, including field aliasing, 
including a single name to multiple fields:
http://wiki.apache.org/solr/ExtendedDisMax#Field_aliasing_.2F_renaming
(with example on p77 of my book
http://www.packtpub.com/apache-solr-for-indexing-data/book :-)

Regards,
   Alex.

Personal website: http://www.outerthoughts.com/ Current project: 
http://www.solr-start.com/ - Accelerating your Solr proficiency


On Fri, Apr 4, 2014 at 3:52 PM, Croci  Francesco Luigi (ID SWS) 
<fcr...@id.ethz.ch> wrote:
> In my index I have some fields which have the same prefix(rmDocumentTitle, 
> rmDocumentClass, rmDocumentSubclass, rmDocumentArt). Apparently it is not 
> possible to specify a query like this:
>
> q = rm* : some_word
>
> Is there a way to do this without having to write a long list of ORs?
>
> Another question is if it is really not possible to search a word over 
> the entire index. Something like this: q = * : some_word
>
> Thank you
> Francesco

Reply via email to