Geek Building The Bridge Part 2 / 804 posts / 1,947 comments / feed / comments feed

Four Tips on Designing SOLR Schema

However similar SOLR to a database, designing schema for each of them has a distinct difference.

So how is it to design schema in SOLR?

  1. Cover all basic data. Make sure to index everything you need to search onto. Indexing more data won’t hurt, storage is cheap.
  2. Cover common search behaviour. Do you search over several fields? Dismax query type sometime does fit your need as it is searching word by word. Store in one field or multifield? Or both? SOLR has copyField feature.You can use it for store concatenated values.
  3. Work on the relevancy and scoring. Setup proper score boosting to your search query. You may found a necessity to ignore score or to use FunctionQuery to tweak scoring or filling a “formula” field, ie: linear, product, sum, etc.
  4. Practise make perfect. Gather feedback from your users, check what search is work and what is not.

FAQ (to be answered soon):

Photo by estherase

Sphere: Related Content

Related entries:

No comments

Leave a comment

« Back to text comment