Solr - Query over all fields best practice

后端 未结 1 1841
猫巷女王i
猫巷女王i 2020-12-03 05:26

schema.xml snippet:

   
   

        
1条回答
  •  孤城傲影
    2020-12-03 06:07

    The best solution is to build a field, that collects the data of all fields like this

    
    

    The only thing you have to do now is, copy the contents of all fields into that field:

    
    
    
    ....
    

    Be aware that the copyField block has to be defined BELOW this:

    
    ....
    
    

    Now you can search only on the field collector and you will find any text in any of your fields.

    0 讨论(0)
提交回复
热议问题