Re: Query by distance

2016-10-19 Thread Sergio GarcĂ­a Maroto
Thanks a lot. I will try it and let you know.

Thanks again
Sergio


On 18 October 2016 at 17:02, John Bickerstaff 
wrote:

> Just in case it helps, I had good success on multi-word synonyms using this
> plugin...
>
> https://github.com/healthonnet/hon-lucene-synonyms
>
> IIRC, the instructions are clear and fairly easy to follow - especially for
> Solr 6.x
>
> Ping back if you run into any problems setting it up...
>
>
>
> On Tue, Oct 18, 2016 at 7:12 AM, marotosg  wrote:
>
> > This is my field type.
> >
> >
> > I was reading about this and it looks like the issue
> >  class="solr.TextField"
> > positionIncrementGap="300">
> >   
> > 
> >  > generateWordParts="1" generateNumberParts="1" catenateWords="1"
> > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"
> > preserveOriginal="1" protected="protwordscompany.txt"/>
> >  > preserveOriginal="false"/>
> > 
> >  > synonyms="positionsynonyms.txt" ignoreCase="true" expand="true"/>
> >   
> >   
> > 
> >  > generateWordParts="0" generateNumberParts="0" catenateWords="0"
> > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"
> > preserveOriginal="1" protected="protwordscompany.txt"/>
> >      > preserveOriginal="false"/>
> > 
> >   
> >  
> >
> >
> > I have been reading and it looks like the issue is about multi term
> > synonym.
> > http://opensourceconnections.com/blog/2013/10/27/why-is-
> > multi-term-synonyms-so-hard-in-solr/
> >
> > I may try this plug in to check if it works.
> >
> >
> >
> >
> > --
> > View this message in context: http://lucene.472066.n3.
> > nabble.com/Query-by-distance-tp4300660p4301697.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>


Re: Query by distance

2016-10-18 Thread John Bickerstaff
Just in case it helps, I had good success on multi-word synonyms using this
plugin...

https://github.com/healthonnet/hon-lucene-synonyms

IIRC, the instructions are clear and fairly easy to follow - especially for
Solr 6.x

Ping back if you run into any problems setting it up...



On Tue, Oct 18, 2016 at 7:12 AM, marotosg  wrote:

> This is my field type.
>
>
> I was reading about this and it looks like the issue
>  positionIncrementGap="300">
>   
> 
>  generateWordParts="1" generateNumberParts="1" catenateWords="1"
> catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"
> preserveOriginal="1" protected="protwordscompany.txt"/>
>  preserveOriginal="false"/>
> 
>  synonyms="positionsynonyms.txt" ignoreCase="true" expand="true"/>
>   
>   
> 
>  generateWordParts="0" generateNumberParts="0" catenateWords="0"
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"
> preserveOriginal="1" protected="protwordscompany.txt"/>
>  preserveOriginal="false"/>
> 
>   
>  
>
>
> I have been reading and it looks like the issue is about multi term
> synonym.
> http://opensourceconnections.com/blog/2013/10/27/why-is-
> multi-term-synonyms-so-hard-in-solr/
>
> I may try this plug in to check if it works.
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/Query-by-distance-tp4300660p4301697.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Query by distance

2016-10-18 Thread marotosg
This is my field type.


I was reading about this and it looks like the issue

  





  
  




  
 


I have been reading and it looks like the issue is about multi term synonym.
http://opensourceconnections.com/blog/2013/10/27/why-is-multi-term-synonyms-so-hard-in-solr/

I may try this plug in to check if it works.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Query-by-distance-tp4300660p4301697.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Query by distance

2016-10-13 Thread Emir Arnautovic

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


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/



Query by distance

2016-10-11 Thread marotosg
Hi,

I have a field which contains Job Positions for people. This field uses a
SynonymFilterFactory 


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.