You haven't defined what you want to see, so it's hard
to help. What does "top" mean? The order you put it
into the index? Lexical sort? Frequency count?
Numerical ordering?

Why do you want to do this? Perhaps if you explained
your use case we'd be able to offer some alternatives.

Best
Erick

On Tue, Nov 16, 2010 at 1:22 AM, sivaprasad <sivaprasa...@echidnainc.com>wrote:

>
>
> Hi,
>
> I have given the terms component configuration.
>
> <searchComponent name="termsComponent"
> class="org.apache.solr.handler.component.TermsComponent"/>
>
>  <requestHandler name="/autoSuggest"
> class="org.apache.solr.handler.component.SearchHandler">
>     <lst name="defaults">
>      <bool name="terms">true</bool>
>          <str name="terms.fl">autoSuggestTerm</str>
>          <str name="terms.sort">index</str>
>    </lst>
>    <arr name="components">
>      <str>termsComponent</str>
>    </arr>
>  </requestHandler>
>
> And i have two fileds in schema file
>
> <field name="autoSuggestTerm" type="string" indexed="true" stored="true"/>
>  <field name="WEIGHTAGE" type="integer" stored="true"/>
>
> Now iam trying to sort the terms which are returned by terms component
> based
> on WEIGHTAGE  field.
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Term-component-sort-is-not-working-tp1905059p1909386.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to