Solr: QueryElevationComponent requires StrField uniqueKeyField error

前端 未结 2 1263
北海茫月
北海茫月 2020-12-11 19:09

I recently installed solr. The example index (found at apache-solr-#.#.#\\example\\solr) seems to work, and, once copied to my solr home directory, I am able to access it th

2条回答
  •  臣服心动
    2020-12-11 19:25

    If you are still looking for an answer,

    In schema.xml , include the following

     
     
    

    In elevate.xml, use this ID to map your search term to the best bet result .

    
     
      
     
    
    

    Here, 4602376f-9741-407b-896e-645ec3ead457 is the value in the "id" field of the best bet document. Wish, Solr allows us to specify any primary key field , say employeeid or productid for specifying in the elevate.xml

提交回复
热议问题