On 19 May 2013 08:36, Kamal Palei <palei.ka...@gmail.com> wrote: > Hi Alex > I just saw in* types *area, long is already defined as > > * <fieldType name="long" class="solr.TrieLongField" precisionStep="0" > omitNorms="true" positionIncrementGap="0"/> > * > Hence I hope, I should be able to declare a long type index in* fields *area > as shown below. > > <field name="salary" type="long" indexed="true" stored="true" /> > <field name="experience" type="long" indexed="true" stored="true "/>
Yes, this should be fine. > Not sure, why it is not taking effect. What do you mean by "not taking effect"? You do not seem to have made this clear anywhere in the thread. Besides adding the fields to Solr's schema.xml, you have to make sure that field values are picked up, and indexed properly into Solr. How are you indexing? Have you reindexed after adding the fields? Are you getting any errors in the logs after the indexing. Regards, Gora