Thanks for the reply.

Yes, all are indexed=true (name_auto and the copyField items).

Here are the snippets from schema.xml (didn't want to post the whole thing
because the following is what I've changed/added)


   <field name="name_auto" type="text_general" indexed="true" stored="true"
multiValued="true" />
   <field name="doc_id" type="string" />
   <field name="doc_type" type="string" />

    <field name="id" type="string" indexed="true" stored="true"
required="true"/> 
    <field name="type" type="string" indexed="false" stored="true"/>

    
    <field name="ucsc_id" type="string" indexed="true" stored="true"/>
    <field name="species_taxonomy_id" type="string" indexed="true"
stored="true"/>
    <field name="species_name" type="string" indexed="true" stored="true"/>
    <field name="species_short_name" type="string" indexed="true"
stored="true"/>
    <field name="species_network_name" type="string" indexed="true"
stored="true"/>
    <field name="species_network_desc" type="string" indexed="true"
stored="true"/>

    
    <field name="gene_name" type="string" indexed="true" stored="true"
multiValued="false"/>
    <field name="gene_common_name" type="string" indexed="true"
stored="true" multiValued="false"/>
    <field name="gene_type" type="string" indexed="true" stored="true"
multiValued="false"/>
    <field name="gene_description" type="string" indexed="true"
stored="true" multiValued="false"/>
    <field name="gene_tf" type="string" indexed="true" stored="true"
multiValued="false"/>
    <field name="gene_function_name" type="string" indexed="true"
stored="true" multiValued="true"/>
    <field name="gene_function_namespace" type="string" indexed="true"
stored="true" multiValued="true"/>
    <field name="gene_function_type" type="string" indexed="true"
stored="true" multiValued="true"/>
    <field name="gene_function_desc" type="string" indexed="true"
stored="true" multiValued="true"/>

    
    <field name="bicluster_id" type="string" indexed="true" stored="true"/>
    <field name="bi_gene_name" type="string" indexed="true" stored="true"
multiValued="true"/>
    <field name="bi_gene_common_name" type="string" indexed="true"
stored="true" multiValued="true"/>
    <field name="bi_gene_descr" type="string" indexed="true" stored="true"
multiValued="true" />
    <field name="bi_species_name" type="string" indexed="true" stored="true"
multiValued="false" />
    <field name="bi_species_short_name" type="string" indexed="true"
stored="true" multiValued="false" />
    <field name="species_ncbi_tax_id" type="string" indexed="true"
stored="true" multiValued="false" />
    <field name="condition_name" type="string" indexed="true" stored="true"
multiValued="true" />
    <field name="network_name" type="string" indexed="true" stored="true"
multiValued="false" />
    <field name="network_desc" type="string" indexed="true" stored="true"
multiValued="false" />
    <field name="influence_name" type="string" indexed="true" stored="true"
multiValued="true" />
    <field name="influence_type" type="string" indexed="true" stored="true"
multiValued="true" />

   <copyField source="gene_name" dest="name_auto" />
   <copyField source="gene_common_name" dest="name_auto"/>
   <copyField source="gene_function_name" dest="name_auto" />
   <copyField source="species_name" dest="name_auto"/>
   <copyField source="species_short_name" dest="name_auto"/>
   
   <uniqueKey>doc_id</uniqueKey>

The defaultSearchField I left as text and have a bunch of the fields above
in a copyField where dest="text".

The following is my change/addition to solrconfig.xml.

  <searchComponent class="solr.SpellCheckComponent" name="suggest">
    <lst name="spellchecker">
      <str name="name">suggest</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
      
      <str name="field">name_auto</str>  
      <float name="threshold">0.005</float>
      <str name="buildOnCommit">true</str>
      
    </lst>
  </searchComponent>
  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggest">
    <lst name="defaults">
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggest</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">10</str>
      <str name="spellcheck.collate">true</str>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
  </requestHandler>  
  

Let me know if you need more info.  Again, thanks for the response.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggest-component-tp2725438p3574654.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to