Static field for document in Data Import Handlerfor Solr

前端 未结 2 1479
小鲜肉
小鲜肉 2021-01-22 15:27

Im making an index in solr from db in the following way:

  

  

  

        
2条回答
  •  花落未央
    2021-01-22 15:45

    You can add a column to your SQL query that contains static data like this:

      
        
        
      
    
        
        
        
    
    

    If you try to add a field with only name and template attributes, Solr will throw an error saying Field must have a column attribute.

提交回复
热议问题