: Our environment is Solr 3.6.1. I have the following fieldType. There is a
: field called 'body' of this fieldType. When I make a query: q=body:*, it is
: talking longer than the expected. What are the changes I need to do to this
: fieldType for better query performance? Some other fieldTypes in our schema
: are performing better.

this is a *really* terrible practice -- especially for large text fields, 
it requires solr to scan every possible term in that field (ie: every 
word) looking to see which documents contain that term.

if your goal is to query for docs that "have a value in the body field" 
then i highly suggest you add a boolean field called "has_body" and query 
that.  Much faster.


-Hoss

Reply via email to