You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by solr2020 <ps...@gmail.com> on 2016/06/20 12:51:51 UTC

How do we get terms suggestion from SuggestComponent?

Hi,

I am using solr.SuggestComponent for auto suggestion, it works fine. But the
problem is, it returns the whole field value as suggestion instead of terms.
But my requirement is term needs to be returned as suggestion. How do we
achieve this with solr.SuggestComponent?

Thanks.





--
View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-get-terms-suggestion-from-SuggestComponent-tp4283399.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How do we get terms suggestion from SuggestComponent?

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi,

With grams parameter of FreeTextLookupFactory, no?

Ahmet



On Tuesday, June 21, 2016 1:19 PM, solr2020 <ps...@gmail.com> wrote:
Thanks Ahmet.

It is working fine. Now i would like to get suggestions for multiple terms.
How do i get suggestions for multiple terms?
    
<fieldType name="text_suggest" class="solr.TextField"
positionIncrementGap="100">
         <analyzer type="index">        
    <tokenizer class="solr.ClassicTokenizerFactory"/>                    
        <filter class="solr.LowerCaseFilterFactory"/>                
       </analyzer>
      <analyzer type="query">         
       <tokenizer class="solr.ClassicTokenizerFactory"/>                        
       <filter class="solr.LowerCaseFilterFactory"/>                        
      </analyzer>
</fieldType>

Thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-get-terms-suggestion-from-SuggestComponent-tp4283399p4283584.html

Sent from the Solr - User mailing list archive at Nabble.com.

Re: How do we get terms suggestion from SuggestComponent?

Posted by solr2020 <ps...@gmail.com>.
Thanks Ahmet.

It is working fine. Now i would like to get suggestions for multiple terms.
How do i get suggestions for multiple terms?
	
<fieldType name="text_suggest" class="solr.TextField"
positionIncrementGap="100">
         <analyzer type="index">        
	<tokenizer class="solr.ClassicTokenizerFactory"/>					
        <filter class="solr.LowerCaseFilterFactory"/>				
       </analyzer>
      <analyzer type="query">     	
       <tokenizer class="solr.ClassicTokenizerFactory"/>						
       <filter class="solr.LowerCaseFilterFactory"/>						
      </analyzer>
 </fieldType>

Thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-get-terms-suggestion-from-SuggestComponent-tp4283399p4283584.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How do we get terms suggestion from SuggestComponent?

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi,

I think :

<str name="lookupImpl">FreeTextLookupFactory</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="ngrams">3</str>
<str name="field">content</str>

Ahmet



On Monday, June 20, 2016 3:51 PM, solr2020 <ps...@gmail.com> wrote:
Hi,

I am using solr.SuggestComponent for auto suggestion, it works fine. But the
problem is, it returns the whole field value as suggestion instead of terms.
But my requirement is term needs to be returned as suggestion. How do we
achieve this with solr.SuggestComponent?

Thanks.





--
View this message in context: http://lucene.472066.n3.nabble.com/How-do-we-get-terms-suggestion-from-SuggestComponent-tp4283399.html
Sent from the Solr - User mailing list archive at Nabble.com.