Re: Synonym format not working

2008-10-20 Thread Norberto Meijome
On Mon, 20 Oct 2008 00:08:07 -0700 (PDT)
prerna07 <[EMAIL PROTECTED]> wrote:

> 
> 
> The issue with synonym arise when i have number in synonym defination:
> 
> ccc =>1,2 gives following result in debugQuery= true :
>  MultiPhraseQuery(all:" (1 ) (2 ccc )
> 3") 
>   all:" (1 ) (2 ccc ) 3" 
> 
> However fooaaa=> fooaaa, baraaa,bazaaa gives correct synonym results:
> 
>   all:fooaaa all:baraaa all:bazaaa 
>   all:fooaaa all:baraaa all:bazaaa 
> 
> Any pointers to solve the issue with numbers in synonyms?

Prerna,
in your first email you show your field type has :

[...]

[..]

generateNumberParts=1 will, AFAIK, generate a different token on a number. so
ccc1 will be indexed as "ccc", "1"  . If you use admin/analsys.jsp you can see
the step by step process taken by the tokenizer + filters for your data type -
you can then tweak it as necessary until you are happy with the results.

b
_
{Beto|Norberto|Numard} Meijome

Immediate success shouldn't be necessary as a motivation to do the right thing.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


Re: Synonym format not working

2008-10-20 Thread prerna07


The issue with synonym arise when i have number in synonym defination:

ccc =>1,2 gives following result in debugQuery= true :
 MultiPhraseQuery(all:" (1 ) (2 ccc )
3") 
  all:" (1 ) (2 ccc ) 3" 

However fooaaa=> fooaaa, baraaa,bazaaa gives correct synonym results:

  all:fooaaa all:baraaa all:bazaaa 
  all:fooaaa all:baraaa all:bazaaa 

Any pointers to solve the issue with numbers in synonyms?

Thanks,
Prerna




hossman wrote:
> 
> 
> : I am not getting any search result for ccc. I have created indexes with
> : string value.
> : 
> : Do i need to change anything in schema .xml ?
> : 
> :  String tag from Schema.xml : 
> :   : omitNorms="true">
> :  
> 
> StrField doesn't use an  ... if you look at the values you've 
> indexed with the LukeRequestHandler you'll see that the literal values are 
> in your index ... you'll want to change that to "solr.TextField"
> 
> Most likely, you'll want to add an  as well, 
> otherwise the same analyser will be used at index and at query time (so 
> you'll get synonym and worddelim expansion in both cases, and things won't 
> match the way you expect.
> 
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Synonym--format-not-working-tp20026988p20064274.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Synonym format not working

2008-10-19 Thread Chris Hostetter

: I am not getting any search result for ccc. I have created indexes with
: string value.
: 
: Do i need to change anything in schema .xml ?
: 
:  String tag from Schema.xml : 
:  
:

StrField doesn't use an  ... if you look at the values you've 
indexed with the LukeRequestHandler you'll see that the literal values are 
in your index ... you'll want to change that to "solr.TextField"

Most likely, you'll want to add an  as well, 
otherwise the same analyser will be used at index and at query time (so 
you'll get synonym and worddelim expansion in both cases, and things won't 
match the way you expect.




-Hoss



Re: Synonym format not working

2008-10-17 Thread Otis Gospodnetic
Try debugQuery=true not dubugQuery=true
Also, just include the expanded query in your email.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



- Original Message 
> From: prerna07 <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Friday, October 17, 2008 2:21:50 AM
> Subject: Re: Synonym  format not working
> 
> 
> Actual synonym :
> ccc => 1,2
> ccc=>3
> 
> The result when i added &dubugQuery=true is:
> 
> 
> - 
> - 
>   0 
>   15 
> - 
>   10 
>   0 
>   on 
>   ccc 
>   true 
>   2.2 
>   
>   
>   
> - 
>   ccc 
>   ccc 
>   MultiPhraseQuery(all:" (1 ) (2 ccc )
> 3") 
>   all:" (1 ) (2 ccc ) 3" 
>   
>   OldLuceneQParser 
> - 
>   8.0 
> - 
>   2.0 
> - 
>   1.0 
>   
> - 
>   0.0 
>   
> - 
>   0.0 
>   
> - 
>   0.0 
>   
> - 
>   0.0 
>   
>   
> - 
>   4.0 
> - 
>   2.0 
>   
> - 
>   0.0 
>   
> - 
>   0.0 
>   
> - 
>   0.0 
>   
> - 
>   2.0 
>   
>   
>   
>   
>   
> 
> 
> 
> Otis Gospodnetic wrote:
> > 
> > I can't see the problem at the moment.  What do you see when you use
> > &debugQuery=true in the URL?  Do you see the query that includes synonyms? 
> > Can you give us the actual query and actual synonyms?
> > 
> > 
> > Otis
> > --
> > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> > 
> > 
> > 
> > - Original Message 
> >> From: prerna07 
> >> To: solr-user@lucene.apache.org
> >> Sent: Friday, October 17, 2008 12:36:40 AM
> >> Subject: Synonym  format not working
> >> 
> >> 
> >> Hi,
> >> 
> >> I am facing issue in synonym search of solr. The synonym.txt contain the
> >> format:
> >> 
> >> ccc => 1,2,ccc
> >> ccc => 3
> >> 
> >> I am not getting any search result for ccc. I have created indexes with
> >> string value.
> >> 
> >> Do i need to change anything in schema .xml ?
> >> 
> >> String tag from Schema.xml : 
> >> 
> >> omitNorms="true">
> >>
> >>
> >>
> >> ignoreCase="true" expand="true"/>
> >>        
> >> words="stopwords.txt"/>
> >>
> >> generateWordParts="1" generateNumberParts="1" catenateWords="0"
> >> catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
> >>
> >>
> >> protected="protwords.txt"/>
> >>
> >>  
> >> 
> >> 
> >> Any pointers to solve the issue?
> >> 
> >> Thanks,
> >> Prerna
> >> 
> >> 
> >> -- 
> >> View this message in context: 
> >> http://www.nabble.com/Synonym--format-not-working-tp20026988p20026988.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Synonym--format-not-working-tp20026988p20027720.html
> Sent from the Solr - User mailing list archive at Nabble.com.



Re: Synonym format not working

2008-10-16 Thread prerna07

Actual synonym :
ccc => 1,2
ccc=>3

The result when i added &dubugQuery=true is:

  
- 
- 
  0 
  15 
- 
  10 
  0 
  on 
  ccc 
  true 
  2.2 
  
  
   
- 
  ccc 
  ccc 
  MultiPhraseQuery(all:" (1 ) (2 ccc )
3") 
  all:" (1 ) (2 ccc ) 3" 
   
  OldLuceneQParser 
- 
  8.0 
- 
  2.0 
- 
  1.0 
  
- 
  0.0 
  
- 
  0.0 
  
- 
  0.0 
  
- 
  0.0 
  
  
- 
  4.0 
- 
  2.0 
  
- 
  0.0 
  
- 
  0.0 
  
- 
  0.0 
  
- 
  2.0 
  
  
  
  
  



Otis Gospodnetic wrote:
> 
> I can't see the problem at the moment.  What do you see when you use
> &debugQuery=true in the URL?  Do you see the query that includes synonyms? 
> Can you give us the actual query and actual synonyms?
> 
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> - Original Message 
>> From: prerna07 <[EMAIL PROTECTED]>
>> To: solr-user@lucene.apache.org
>> Sent: Friday, October 17, 2008 12:36:40 AM
>> Subject: Synonym  format not working
>> 
>> 
>> Hi,
>> 
>> I am facing issue in synonym search of solr. The synonym.txt contain the
>> format:
>> 
>> ccc => 1,2,ccc
>> ccc => 3
>> 
>> I am not getting any search result for ccc. I have created indexes with
>> string value.
>> 
>> Do i need to change anything in schema .xml ?
>> 
>> String tag from Schema.xml : 
>> 
>> omitNorms="true">
>> 
>> 
>> 
>> ignoreCase="true" expand="true"/>
>> 
>> words="stopwords.txt"/>
>> 
>> generateWordParts="1" generateNumberParts="1" catenateWords="0"
>> catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
>> 
>>     
>> protected="protwords.txt"/>
>> 
>>   
>> 
>> 
>> Any pointers to solve the issue?
>> 
>> Thanks,
>> Prerna
>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Synonym--format-not-working-tp20026988p20026988.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Synonym--format-not-working-tp20026988p20027720.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Synonym format not working

2008-10-16 Thread Otis Gospodnetic
I can't see the problem at the moment.  What do you see when you use 
&debugQuery=true in the URL?  Do you see the query that includes synonyms?  Can 
you give us the actual query and actual synonyms?


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



- Original Message 
> From: prerna07 <[EMAIL PROTECTED]>
> To: solr-user@lucene.apache.org
> Sent: Friday, October 17, 2008 12:36:40 AM
> Subject: Synonym  format not working
> 
> 
> Hi,
> 
> I am facing issue in synonym search of solr. The synonym.txt contain the
> format:
> 
> ccc => 1,2,ccc
> ccc => 3
> 
> I am not getting any search result for ccc. I have created indexes with
> string value.
> 
> Do i need to change anything in schema .xml ?
> 
> String tag from Schema.xml : 
> 
> omitNorms="true">
> 
> 
> 
> ignoreCase="true" expand="true"/>
> 
> words="stopwords.txt"/>
> 
> generateWordParts="1" generateNumberParts="1" catenateWords="0"
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
> 
> 
> protected="protwords.txt"/>
> 
>   
> 
> 
> Any pointers to solve the issue?
> 
> Thanks,
> Prerna
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Synonym--format-not-working-tp20026988p20026988.html
> Sent from the Solr - User mailing list archive at Nabble.com.



Synonym format not working

2008-10-16 Thread prerna07

Hi,

I am facing issue in synonym search of solr. The synonym.txt contain the
format:

ccc => 1,2,ccc
ccc => 3

I am not getting any search result for ccc. I have created indexes with
string value.

Do i need to change anything in schema .xml ?

 String tag from Schema.xml : 
 
 







  


Any pointers to solve the issue?

Thanks,
Prerna


-- 
View this message in context: 
http://www.nabble.com/Synonym--format-not-working-tp20026988p20026988.html
Sent from the Solr - User mailing list archive at Nabble.com.