lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emir Arnautovic <emir.arnauto...@sematext.com>
Subject Re: Query by distance
Date Thu, 13 Oct 2016 10:20:43 GMT
Hi,

Did you try simple phrase query> PositionNSD:"Chief Executive Officer"?

Did you apply synonym filter on query or index time?

Emir


On 11.10.2016 17:49, marotosg wrote:
> Hi,
>
> I have a field which contains Job Positions for people. This field uses a
> SynonymFilterFactory
> <filter class="solr.SynonymFilterFactory" synonyms="positionsynonyms.txt"
> ignoreCase="true" expand="true"/>
>
> The field contains the following data "Chief Sales Officer"  and my synonyms
> file has an entrance
> like "Chief Sales Officer, Chief of Sales, Chief Sales Executive".
>
> My Analyzer return for "Chief Sales Officer"  these tokens. "chief chief
> chief sales of sales officer sales executive"
>
> I have a query like below which is returning a match for "Chief Executive
> officer" which is not good.
>   ((((PositionNSD:(Chief))^3 OR ((PositionNSD:Chief*))^1.5)
> AND
>   ((PositionNSD:(Executive))^3 OR ((PositionNSD:Executive*))^1.5)
> AND
>   ((PositionNSD:(Officer))^3 OR ((PositionNSD:Officer*))^1.5)))
>
> Can anyone suggest a solution to keep the distance between the terms or do
> something to avoid to match on any token no matter the position?
>
> Thanks a lot.
>
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Query-by-distance-tp4300660.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Mime
View raw message