What is the use of “multiValued” field type in Solr?

后端 未结 3 1253
盖世英雄少女心
盖世英雄少女心 2020-11-27 15:43

I\'m new to Apache Solr. Even after reading the documentation part, I\'m finding it difficult to clearly understand the functionality and use of the multiValued

3条回答
  •  Happy的楠姐
    2020-11-27 16:11

    I use multiple value fields only with copyfields, so think this way, say all fields will be single valued unless it's a copyfield, for example I have following fields:

    
    
    
    
    

    I want to query one field only and possibly to search all 4 fields above, then we need to use copyfield. first to create a new field call 'all', then copy everything into 'all'

    
    
    

    Now field 'all' need to be multi-valued.

提交回复
热议问题