Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-09 Thread Nitin Solanki
Hi ale42,
  Yes. I am using the same field (gram_ci) to make a query and
also using the same field(gram_ci) to build suggestion on it.

Here is the explanation:
I have a 2 fields - gram and gram_ci.
where gram field sets to stored = true and index = true while gram_ci field
sets to stored=false but index = true.
and making copy field of gram into gram_ci.

Both gram and gram_ci fields using same fieldType -
StandardTokenizerFactory and ShingleFilterFactory for both index and query.
Only the difference is that gram_ci is using lowercaseFilter and gram
doesn't. And I am making query on gram_ci not on gram.



On Mon, Mar 9, 2015 at 3:24 PM, ale42 
alexandre.faye...@etu.esisar.grenoble-inp.fr wrote:

 When you make a query, does it use the same field type as the field that
 you
 are using to build suggestions?



 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191813.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-09 Thread ale42
So, I think it's depend on the field that you are working on ?!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191800.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-09 Thread Nitin Solanki
I am using field as standardTokenizerFactory with
ShingleFilterFactory. Is it doing so?

On 3/9/15, ale42 alexandre.faye...@etu.esisar.grenoble-inp.fr wrote:
 So, I think it's depend on the field that you are working on ?!



 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191800.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-09 Thread ale42
When you make a query, does it use the same field type as the field that you
are using to build suggestions?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191813.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-08 Thread Nitin Solanki
Hi ale42,
I am not using /solr.IndexBasedSpellChecker/. I used
solr.DirectSpellChecker. Is there anyway to solve my issue?

On Fri, Mar 6, 2015 at 6:27 PM, ale42 
alexandre.faye...@etu.esisar.grenoble-inp.fr wrote:

 I think these frequencies are not the frequence of the term in the same
 index
 :

 - original frequency represents the number of results that you have in
 lucene index when you query who.

 - suggestion frequency is the number of results of this term in the
 spellcheck dictionnary.

 I guess you're using /solr.IndexBasedSpellChecker/ !



 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191397.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-08 Thread Nitin Solanki
Hi Wang,
 I am using SolrCloud. Is suggestion not working properly in
that?

On Fri, Mar 6, 2015 at 2:36 PM, gaohang wang gaohangw...@gmail.com wrote:

 do you use solrcloud?maybe your suggestion is not support distribute

 2015-03-04 22:39 GMT+08:00 Nitin Solanki nitinml...@gmail.com:

  Hi..
 I have a term(who) where original frequency of who is 191 but
  when I get suggestion of who it gives me 90. Why?
 
  Example :
 
  *Original Frequency* comes like:
 
  spellcheck:{
  suggestions:[
who,{
  numFound:1,
  startOffset:1,
  endOffset:4,
  origFreq:*191*,
correctlySpelled,false]}}
 
  While In *Suggestion*, it gives like:
 
  spellcheck:{
  suggestions:[
whs,{
  numFound:1,
  startOffset:1,
  endOffset:4,
  origFreq:0,
  suggestion:[{
  word:who,
  freq:*90*}]},
correctlySpelled,false]}}
 
 
 
  Why it is so?
 
  I am using StandardTokenizerFactory with ShingleFilterFactory in
  Schema.xml..
 



Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-06 Thread gaohang wang
do you use solrcloud?maybe your suggestion is not support distribute

2015-03-04 22:39 GMT+08:00 Nitin Solanki nitinml...@gmail.com:

 Hi..
I have a term(who) where original frequency of who is 191 but
 when I get suggestion of who it gives me 90. Why?

 Example :

 *Original Frequency* comes like:

 spellcheck:{
 suggestions:[
   who,{
 numFound:1,
 startOffset:1,
 endOffset:4,
 origFreq:*191*,
   correctlySpelled,false]}}

 While In *Suggestion*, it gives like:

 spellcheck:{
 suggestions:[
   whs,{
 numFound:1,
 startOffset:1,
 endOffset:4,
 origFreq:0,
 suggestion:[{
 word:who,
 freq:*90*}]},
   correctlySpelled,false]}}



 Why it is so?

 I am using StandardTokenizerFactory with ShingleFilterFactory in
 Schema.xml..



Re: Frequency of Suggestion are varying from original Frequency in index

2015-03-06 Thread ale42
I think these frequencies are not the frequence of the term in the same index
:

- original frequency represents the number of results that you have in
lucene index when you query who.

- suggestion frequency is the number of results of this term in the
spellcheck dictionnary.

I guess you're using /solr.IndexBasedSpellChecker/ !



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Frequency-of-Suggestion-are-varying-from-original-Frequency-in-index-tp4190927p4191397.html
Sent from the Solr - User mailing list archive at Nabble.com.


Frequency of Suggestion are varying from original Frequency in index

2015-03-04 Thread Nitin Solanki
Hi..
   I have a term(who) where original frequency of who is 191 but
when I get suggestion of who it gives me 90. Why?

Example :

*Original Frequency* comes like:

spellcheck:{
suggestions:[
  who,{
numFound:1,
startOffset:1,
endOffset:4,
origFreq:*191*,
  correctlySpelled,false]}}

While In *Suggestion*, it gives like:

spellcheck:{
suggestions:[
  whs,{
numFound:1,
startOffset:1,
endOffset:4,
origFreq:0,
suggestion:[{
word:who,
freq:*90*}]},
  correctlySpelled,false]}}



Why it is so?

I am using StandardTokenizerFactory with ShingleFilterFactory in
Schema.xml..