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 Gustav <xb...@sharklasers.com> on 2012/11/21 18:12:37 UTC

Suggester for numbers

Hello guys, 
Please i need help.. im using the suggest search component for autocomplete
in Solr 3.6.1, i have an autocomplete field wich contains two other fields:
an conteiner_name and conteiner_id just like this:

     <field name='autocomplete' type='text_auto' indexed='true'
stored='true' multiValued='true'/>
     <field name='conteiner' type='text_general_like' indexed='true'
stored='true' multiValued='false'/>
     <field name='bl' type='integer' indexed='true' stored='true'
multiValued='false'/>

    <copyField dest="autocomplete" source="conteiner_id"/>
    <copyField dest="autocomplete" source="conteiner_name"/>

When i search for username in my suggester handler it returns the
suggestions just fine,
but when i search for ID (numbers) it doesnt return results at all does
anyone knows why?



--
View this message in context: http://lucene.472066.n3.nabble.com/Suggester-for-numbers-tp4021672.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Suggester for numbers

Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi,

Does StandardTokenizerFactory remove your numbers?
Go to the Analysis page in Solr Admin, enter your query with numbers, and
see what happens.

Otis
--
SOLR Performance Monitoring - http://sematext.com/spm/index.html
Search Analytics - http://sematext.com/search-analytics/index.html




On Thu, Nov 22, 2012 at 6:49 AM, Gustav <xb...@sharklasers.com> wrote:

> StandardTokenizerFactory

Re: Suggester for numbers

Posted by Gustav <xb...@sharklasers.com>.
Hello Illu,
Here you go:

    <field name='autocomplete' type='text_auto' indexed='true' stored='true'
multiValued='true'/>

	<fieldType class="solr.TextField" name="text_auto">
	 <analyzer>
	  <tokenizer class="solr.KeywordTokenizerFactory"/>
	  <filter class="solr.LowerCaseFilterFactory"/>
	 </analyzer>
	</fieldType>


 <field name='conteiner' type='text_general_like' indexed='true'
stored='true' multiValued='false'/>

	    <fieldType class="solr.TextField" name="text_general_like"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.ISOLatin1AccentFilterFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
		<filter class="solr.NGramFilterFactory" maxGramSize="25" minGramSize="1"/>
      </analyzer>

      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.ISOLatin1AccentFilterFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>



--
View this message in context: http://lucene.472066.n3.nabble.com/Suggester-for-numbers-tp4021672p4021828.html
Sent from the Solr - User mailing list archive at Nabble.com.