Remove the stopFilter from the "index" section of your fieldType, only keep it 
in the "query" section. This way your stopwords will always be indexed and 
edismax will be able to selectively remove stopwords from the query depending 
on whether all words are stopwords or not.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

5. juni 2013 kl. 21:36 skrev Vardhan Dharnidharka <vardhan1...@hotmail.com>:

> 
> 
> 
> Hi, 
> 
> I am using the standard edismax parser and my example query is as follows:
> 
> {!edismax qf='object_description ' rows=10 start=0 mm=-40% v='object'}
> 
> In this case, 'object' happens to be a stopword in the StopWordsFilter in my 
> datatype 'object_description'. Now, since 'object' is not indexed at all, the 
> query does not return any results. In an ideal case, I would want documents 
> containing the term 'object' to be returned. 
> 
> What is the best practice to achieve this? Index stop-words and re-query with 
> 'stopwords=false'. Or can this be done without re-querying?
> 
> Thanks, 
> Vardhan 
>                                         

Reply via email to