Menu

20 Kasım 2012 Salı

org.apache.solr.common.SolrException: undefined field text

Exception: 
org.apache.solr.common.SolrException: undefined field text 

Solution: 
1. open solrconfig.xml 
2. find
3. under that tag, find  text

4. change "text" to whatever your entity property that you need it to be indexed

For example, if I have an entity called car, it might have a property called brand and I might want to search within that field. So, in that case it would be convenient for me to change "text" to "brand"

Hiç yorum yok:

Yorum Gönder