lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Sinha <rakesh.use...@gmail.com>
Subject Equivalent of TermVector.YES in solr - schema
Date Mon, 02 Mar 2009 16:31:13 GMT
I am in the process of porting a Lucene code to Solr.

I checked the wiki at - http://wiki.apache.org/solr/SchemaXml  for the
common porting instructions.
But I have a specific query with respect the following line of code,
about creating a field / fieldType in Solr

Lucene:
    return new Field(String, String, Field.Store.NO,
Field.Index.TOKENIZED, TermVector.YES);

Solr:

I created a new field type as -

   <!-- TermVector.YES, Field.Index.Tokenized -->
   <field name="headline" type="string" indexed="true" stored="false"
required="true"/>

My understanding is that - the default type - string does not seem to
be tokenized ( since 2.9 - it is analyzed ).

  <fieldType name="string" class="solr.StrField"
sortMissingLast="true" omitNorms="true"/>

How do I make the field to be TOKENIZED ( since Lucene 2.9, it is
ANALYZED )  with TermVector set to YES.  Thanks.

Mime
View raw message