lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <>
Subject Re: Entire query is stopwords
Date Sun, 09 Jun 2013 00:28:24 GMT
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 -

5. juni 2013 kl. 21:36 skrev Vardhan Dharnidharka <>:

> 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 

View raw message