I've built a search index using the PHP Zend Framework Search (based on Lucene). The search is for a buy/sell website.
My search index includes the following fields:
item-id (UnIndexed)
item-title (Text)
item-description (UnStored)
item-tags (Text)
item-price (keyword)
seller-id (UnIndexed)
seller-name (Text)
I want the user to search the index, filtering their search by either only searching for items or searching for sellers by name.
If I do a search using Lucene's default search settings I will be searching all 5 item fields and the seller-name field. This is not what I want to happen. What I would like is when the user makes the search I want them to be required to select from a drop-down menu if they are searching for an item, or for a seller-name.
How can I tell the search query when searching for items to ignore the seller-name field? And when searching for seller-name's how can i tell the search query to not search across any of the item fields? Or is it better to create a separate index for the seller names?