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 Rantjil Bould <ib...@iblogee.com> on 2008/04/25 11:15:09 UTC

How to extract terms associated with a field

Hello Group,
                I have a field name prefix1 and which is copy of another
field called "content". Field type of prefix1 is
<fieldType name="prefix_token" class="solr.TextField"
positionIncrementGap="1">
               <analyzer type="index">
                         <tokenizer
class="solr.WhitespaceTokenizerFactory"></tokenizer>
                         <filter
class="solr.LowerCaseFilterFactory"></filter>
                         <filter class="solr.EdgeNGramFilterFactory"
minGramSize="1" maxGramSize="20"></filter>
               </analyzer>
               <analyzer type="query">
                         <tokenizer
class="solr.WhitespaceTokenizerFactory"></tokenizer>
                         <filter
class="solr.LowerCaseFilterFactory"></filter>
               </analyzer>
    </fieldType>
My question is, how can i extract terms associated with prefix1. Is there
ant query parameter that can extract all tokens for a field.
Your help/input would be appreciated.

regards,
Ranjan

Re: How to extract terms associated with a field

Posted by Rantjil Bould <ib...@iblogee.com>.
Thanks a lot. I could able to extract all terms in a field for any query.
Also I was wondering how can I extract nearest term info for autocomplete
kind of suggestion. In one of my earlier post, I asked same kind of question
related to faceted search.

-RB


On 4/27/08, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> Take a look at the LukeRequestHandler ... it can list all the terms in a
> field (or in many fields) along with their frequencies.
>
>
>
>
> -Hoss
>
>

Re: How to extract terms associated with a field

Posted by Chris Hostetter <ho...@fucit.org>.
Take a look at the LukeRequestHandler ... it can list all the terms in a 
field (or in many fields) along with their frequencies.




-Hoss