Developer forum

Forum » Development » Lucene database changes

Lucene database changes

Peter Bille Larsen
Reply

Hi DW

We would like to make some changes to the lucene database, so the engine only searches in "product names" and does not include "product description".

Is there any documentation that we can see, or does anybody have a hint, where and how to change this?

 

thanks 
Peter Bille

 


Replies

 
Pavel Volgarev
Reply

Hi Peter,

 

By default the free-text search filter uses document summary which is a concatenation of all document field values. If you want to change this behavior you have two not very pretty options:

  1. Modify the "summary" field (full name is "sys_summary") manually using Luke.
  2. Write your own filter by inheriting from the FreeTextSearchFilterProvider and overriding ComposeQuery.

 

-- Pavel

 

You must be logged in to post in the forum