Re: synonyms and term position

2013-10-09 Thread Alvaro Cabrerizo
The synonyms.txt has defined the next associations defined.

AIO=>All in one
aio=>all-in-one

Regards.


On Wed, Oct 9, 2013 at 11:05 AM, Alvaro Cabrerizo wrote:

> No, it has no synonyms.
>
>
> On Wed, Oct 9, 2013 at 10:48 AM, Furkan KAMACI wrote:
>
>> Does "two" has a synonym of "in" and "one"?
>>
>>
>> 2013/10/9 Furkan KAMACI 
>>
>>> Does "two" has a synonym of "in" and "one"?
>>>
>>>
>>> 2013/10/9 Alvaro Cabrerizo 
>>>
 Sure,

 Find attached the screenshots with almost all the analysis, (dont worry
 about the lowercase and the porter stemmer)

 Regards.




 On Wed, Oct 9, 2013 at 10:17 AM, Furkan KAMACI 
 wrote:

> Could you send screenshot of  admin Analysis page when trying to
> analyze
> that words?
>
>
> 2013/10/9 Alvaro Cabrerizo 
>
> > Hi:
> >
> > I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm
> having a
> > problem using SynonymFilterFactory within the process chain
> > SynonymFilterFactory, StopFilterFactory .
> >
> > I have configured synonyms.txt to expand the word AIO as:
> all-in-one. Well,
> > when using solr 1.4 I get the following result (term position) when
> > analysing the string "one aio two".
> >
> > Solr 1.4 after synonym:
> >
> > term position |1 | 2 |3 |4 |5
> > term text |one| all |in |one |two
> >
> > Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and
> "one"
> > are consecutive)
> >
> > term position |1 | 2 |4 |5
> > term text |one| all |one |two
> >
> >
> >
> > But when using solr4.4 I get:
> >
> > Solr 4.4 after synonym:
> >
> > term position |1 | 2 |3 |4 |3
> > term text |one| all |in |one |two
> >
> > Solr 4.4 after stop ("in" is deleted and the term "two" is now close
> to
> > "all" :
> >
> > term position |1 | 2 |4 |3
> > term text |one| all |one |two
> >
> >
> >
> > The problem is that the second word "two" is in position 3 in
> solr4.4 so
> > when I try to search aio, in solr1.4 I get results, but find nothing
> using
> > Solr4. Is there any option to configure solr4 that imitates solr1.4
> > behavior.
> >
> >
> > Regards.
> >
> >
> >
> >
> > Please, find attached the fieldtype configuration.
> >
> >  positionIncrementGap="100"
> > autoGeneratePhraseQueries="true">
> > 
> > 
> >  > ignoreCase="true" expand="true" />
> >  > words="stopwords.txt" enablePositionIncrements="true" />
> >  > generateNumberParts="1" catenateWords="1"
> > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
> > 
> >  > protected="protwords.txt" />
> > 
> > 
> > 
> >  > ignoreCase="true" expand="true" />
> >  > words="stopwords.txt" enablePositionIncrements="true" />
> >  > generateNumberParts="1" catenateWords="0"
> > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" />
> > 
> >  > protected="protwords.txt" />
> > 
> > 
> >
>


>>>
>>
>


Re: synonyms and term position

2013-10-09 Thread Alvaro Cabrerizo
No, it has no synonyms.


On Wed, Oct 9, 2013 at 10:48 AM, Furkan KAMACI wrote:

> Does "two" has a synonym of "in" and "one"?
>
>
> 2013/10/9 Furkan KAMACI 
>
>> Does "two" has a synonym of "in" and "one"?
>>
>>
>> 2013/10/9 Alvaro Cabrerizo 
>>
>>> Sure,
>>>
>>> Find attached the screenshots with almost all the analysis, (dont worry
>>> about the lowercase and the porter stemmer)
>>>
>>> Regards.
>>>
>>>
>>>
>>>
>>> On Wed, Oct 9, 2013 at 10:17 AM, Furkan KAMACI 
>>> wrote:
>>>
 Could you send screenshot of  admin Analysis page when trying to analyze
 that words?


 2013/10/9 Alvaro Cabrerizo 

 > Hi:
 >
 > I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm
 having a
 > problem using SynonymFilterFactory within the process chain
 > SynonymFilterFactory, StopFilterFactory .
 >
 > I have configured synonyms.txt to expand the word AIO as: all-in-one.
 Well,
 > when using solr 1.4 I get the following result (term position) when
 > analysing the string "one aio two".
 >
 > Solr 1.4 after synonym:
 >
 > term position |1 | 2 |3 |4 |5
 > term text |one| all |in |one |two
 >
 > Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and
 "one"
 > are consecutive)
 >
 > term position |1 | 2 |4 |5
 > term text |one| all |one |two
 >
 >
 >
 > But when using solr4.4 I get:
 >
 > Solr 4.4 after synonym:
 >
 > term position |1 | 2 |3 |4 |3
 > term text |one| all |in |one |two
 >
 > Solr 4.4 after stop ("in" is deleted and the term "two" is now close
 to
 > "all" :
 >
 > term position |1 | 2 |4 |3
 > term text |one| all |one |two
 >
 >
 >
 > The problem is that the second word "two" is in position 3 in solr4.4
 so
 > when I try to search aio, in solr1.4 I get results, but find nothing
 using
 > Solr4. Is there any option to configure solr4 that imitates solr1.4
 > behavior.
 >
 >
 > Regards.
 >
 >
 >
 >
 > Please, find attached the fieldtype configuration.
 >
 > >>> positionIncrementGap="100"
 > autoGeneratePhraseQueries="true">
 > 
 > 
 > >>> > ignoreCase="true" expand="true" />
 > >>> > words="stopwords.txt" enablePositionIncrements="true" />
 > >>> > generateNumberParts="1" catenateWords="1"
 > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
 > 
 > >>> > protected="protwords.txt" />
 > 
 > 
 > 
 > >>> > ignoreCase="true" expand="true" />
 > >>> > words="stopwords.txt" enablePositionIncrements="true" />
 > >>> > generateNumberParts="1" catenateWords="0"
 > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" />
 > 
 > >>> > protected="protwords.txt" />
 > 
 > 
 >

>>>
>>>
>>
>


Re: synonyms and term position

2013-10-09 Thread Furkan KAMACI
Does "two" has a synonym of "in" and "one"?


2013/10/9 Furkan KAMACI 

> Does "two" has a synonym of "in" and "one"?
>
>
> 2013/10/9 Alvaro Cabrerizo 
>
>> Sure,
>>
>> Find attached the screenshots with almost all the analysis, (dont worry
>> about the lowercase and the porter stemmer)
>>
>> Regards.
>>
>>
>>
>>
>> On Wed, Oct 9, 2013 at 10:17 AM, Furkan KAMACI wrote:
>>
>>> Could you send screenshot of  admin Analysis page when trying to analyze
>>> that words?
>>>
>>>
>>> 2013/10/9 Alvaro Cabrerizo 
>>>
>>> > Hi:
>>> >
>>> > I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm
>>> having a
>>> > problem using SynonymFilterFactory within the process chain
>>> > SynonymFilterFactory, StopFilterFactory .
>>> >
>>> > I have configured synonyms.txt to expand the word AIO as: all-in-one.
>>> Well,
>>> > when using solr 1.4 I get the following result (term position) when
>>> > analysing the string "one aio two".
>>> >
>>> > Solr 1.4 after synonym:
>>> >
>>> > term position |1 | 2 |3 |4 |5
>>> > term text |one| all |in |one |two
>>> >
>>> > Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and
>>> "one"
>>> > are consecutive)
>>> >
>>> > term position |1 | 2 |4 |5
>>> > term text |one| all |one |two
>>> >
>>> >
>>> >
>>> > But when using solr4.4 I get:
>>> >
>>> > Solr 4.4 after synonym:
>>> >
>>> > term position |1 | 2 |3 |4 |3
>>> > term text |one| all |in |one |two
>>> >
>>> > Solr 4.4 after stop ("in" is deleted and the term "two" is now close to
>>> > "all" :
>>> >
>>> > term position |1 | 2 |4 |3
>>> > term text |one| all |one |two
>>> >
>>> >
>>> >
>>> > The problem is that the second word "two" is in position 3 in solr4.4
>>> so
>>> > when I try to search aio, in solr1.4 I get results, but find nothing
>>> using
>>> > Solr4. Is there any option to configure solr4 that imitates solr1.4
>>> > behavior.
>>> >
>>> >
>>> > Regards.
>>> >
>>> >
>>> >
>>> >
>>> > Please, find attached the fieldtype configuration.
>>> >
>>> > >> positionIncrementGap="100"
>>> > autoGeneratePhraseQueries="true">
>>> > 
>>> > 
>>> > >> > ignoreCase="true" expand="true" />
>>> > >> > words="stopwords.txt" enablePositionIncrements="true" />
>>> > >> > generateNumberParts="1" catenateWords="1"
>>> > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
>>> > 
>>> > >> > protected="protwords.txt" />
>>> > 
>>> > 
>>> > 
>>> > >> > ignoreCase="true" expand="true" />
>>> > >> > words="stopwords.txt" enablePositionIncrements="true" />
>>> > >> > generateNumberParts="1" catenateWords="0"
>>> > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" />
>>> > 
>>> > >> > protected="protwords.txt" />
>>> > 
>>> > 
>>> >
>>>
>>
>>
>


Re: synonyms and term position

2013-10-09 Thread Alvaro Cabrerizo
Sure,

Find attached the screenshots with almost all the analysis, (dont worry
about the lowercase and the porter stemmer)

Regards.




On Wed, Oct 9, 2013 at 10:17 AM, Furkan KAMACI wrote:

> Could you send screenshot of  admin Analysis page when trying to analyze
> that words?
>
>
> 2013/10/9 Alvaro Cabrerizo 
>
> > Hi:
> >
> > I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm having a
> > problem using SynonymFilterFactory within the process chain
> > SynonymFilterFactory, StopFilterFactory .
> >
> > I have configured synonyms.txt to expand the word AIO as: all-in-one.
> Well,
> > when using solr 1.4 I get the following result (term position) when
> > analysing the string "one aio two".
> >
> > Solr 1.4 after synonym:
> >
> > term position |1 | 2 |3 |4 |5
> > term text |one| all |in |one |two
> >
> > Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and "one"
> > are consecutive)
> >
> > term position |1 | 2 |4 |5
> > term text |one| all |one |two
> >
> >
> >
> > But when using solr4.4 I get:
> >
> > Solr 4.4 after synonym:
> >
> > term position |1 | 2 |3 |4 |3
> > term text |one| all |in |one |two
> >
> > Solr 4.4 after stop ("in" is deleted and the term "two" is now close to
> > "all" :
> >
> > term position |1 | 2 |4 |3
> > term text |one| all |one |two
> >
> >
> >
> > The problem is that the second word "two" is in position 3 in solr4.4 so
> > when I try to search aio, in solr1.4 I get results, but find nothing
> using
> > Solr4. Is there any option to configure solr4 that imitates solr1.4
> > behavior.
> >
> >
> > Regards.
> >
> >
> >
> >
> > Please, find attached the fieldtype configuration.
> >
> >  > autoGeneratePhraseQueries="true">
> > 
> > 
> >  > ignoreCase="true" expand="true" />
> >  > words="stopwords.txt" enablePositionIncrements="true" />
> >  > generateNumberParts="1" catenateWords="1"
> > catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
> > 
> >  > protected="protwords.txt" />
> > 
> > 
> > 
> >  > ignoreCase="true" expand="true" />
> >  > words="stopwords.txt" enablePositionIncrements="true" />
> >  > generateNumberParts="1" catenateWords="0"
> > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" />
> > 
> >  > protected="protwords.txt" />
> > 
> > 
> >
>


Re: synonyms and term position

2013-10-09 Thread Furkan KAMACI
Could you send screenshot of  admin Analysis page when trying to analyze
that words?


2013/10/9 Alvaro Cabrerizo 

> Hi:
>
> I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm having a
> problem using SynonymFilterFactory within the process chain
> SynonymFilterFactory, StopFilterFactory .
>
> I have configured synonyms.txt to expand the word AIO as: all-in-one. Well,
> when using solr 1.4 I get the following result (term position) when
> analysing the string "one aio two".
>
> Solr 1.4 after synonym:
>
> term position |1 | 2 |3 |4 |5
> term text |one| all |in |one |two
>
> Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and "one"
> are consecutive)
>
> term position |1 | 2 |4 |5
> term text |one| all |one |two
>
>
>
> But when using solr4.4 I get:
>
> Solr 4.4 after synonym:
>
> term position |1 | 2 |3 |4 |3
> term text |one| all |in |one |two
>
> Solr 4.4 after stop ("in" is deleted and the term "two" is now close to
> "all" :
>
> term position |1 | 2 |4 |3
> term text |one| all |one |two
>
>
>
> The problem is that the second word "two" is in position 3 in solr4.4 so
> when I try to search aio, in solr1.4 I get results, but find nothing using
> Solr4. Is there any option to configure solr4 that imitates solr1.4
> behavior.
>
>
> Regards.
>
>
>
>
> Please, find attached the fieldtype configuration.
>
>  autoGeneratePhraseQueries="true">
> 
> 
>  ignoreCase="true" expand="true" />
>  words="stopwords.txt" enablePositionIncrements="true" />
>  generateNumberParts="1" catenateWords="1"
> catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
> 
>  protected="protwords.txt" />
> 
> 
> 
>  ignoreCase="true" expand="true" />
>  words="stopwords.txt" enablePositionIncrements="true" />
>  generateNumberParts="1" catenateWords="0"
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" />
> 
>  protected="protwords.txt" />
> 
> 
>


synonyms and term position

2013-10-09 Thread Alvaro Cabrerizo
Hi:

I'm involved in a process o upgrade solr from 1.4 to 4.4 and I'm having a
problem using SynonymFilterFactory within the process chain
SynonymFilterFactory, StopFilterFactory .

I have configured synonyms.txt to expand the word AIO as: all-in-one. Well,
when using solr 1.4 I get the following result (term position) when
analysing the string "one aio two".

Solr 1.4 after synonym:

term position |1 | 2 |3 |4 |5
term text |one| all |in |one |two

Solr 1.4 after stopfilter ("in" term is deleted and terms "all" and "one"
are consecutive)

term position |1 | 2 |4 |5
term text |one| all |one |two



But when using solr4.4 I get:

Solr 4.4 after synonym:

term position |1 | 2 |3 |4 |3
term text |one| all |in |one |two

Solr 4.4 after stop ("in" is deleted and the term "two" is now close to
"all" :

term position |1 | 2 |4 |3
term text |one| all |one |two



The problem is that the second word "two" is in position 3 in solr4.4 so
when I try to search aio, in solr1.4 I get results, but find nothing using
Solr4. Is there any option to configure solr4 that imitates solr1.4
behavior.


Regards.




Please, find attached the fieldtype configuration.