No, I don't.
But since I'll store documents in solr having "color" set
to "red",
"green", "blue" and "manufacturer" set to "ford", "bmw"
etc. the
information is available.

Okey information is available but the difficult part is recognize those things 
from the free form text query. There is no such mechanism is Solr.

If you can build such program, you can inject it to solr using a custom solr 
plugin.


I'm not sure, whether I made myself very clear. I don't think that it is difficult to evaluate the query. Here's a (very inefficient) algorithm in pseudocode that would do, what I have in mind:

query = ...

foreach (term in query)
  foreach (field in SOLR.config.fields)
    result = SOLR.query(field:term)
    if result.size > 0
      filters.addFilter(field=term)
      break
    end
  end
end

return SOLR.filter(filters)

Reply via email to