[Fixed]-Haystack solr and stopwords

1đź‘Ť

âś…

Stopwords are words that are removed from the index (and query), meaning that your query is just visible:true. They do not “stop” the query in any way.

A possible solution might be to just remove the stopwords on index time, while retaning them when querying (having a different analysis chain for indexing and querying), resulting in the query getting no hits when the token isn’t found in the index.

But that would probably break other things, like querying for “time of change” when the only indexed value is “time change”. Stopwords might not be the thing you’re looking for to solve the issue you’re having.

👤MatsLindh

Leave a comment