Hi,

We have a requirement to show at least one result every time -- i.e., even
if user entered term is not found in any of the documents. I was hoping
setting mm to 0 will return results in all cases, but it is not.

For example, if user entered term "alpha" and it is *not* in any of the
documents in the index, any document in the index can be returned. If term
"alpha" is in the document set, documents having the term "alpha" only must
be returned.

My idea so far is to perform a search using user entered term. If there are
any results, return them. If there are no results, perform another search
without the query term-- this means doing two searches. Any suggestions on
implementing this requirement using only one search?


Thanks,
Satish

Reply via email to