Hi Gora Thanks for your response.
*>>What do you mean by "not taking effect"? You do not seem to have >>made this clear anywhere in the thread. * Basically I user SOLR in drupal environment. In drupal, in configuration page, there is a link that shows all available index fields. I had added two long types and one date type. The date type index field I can see. However I am not able to see two long fields salary and experience. * >>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. * I have put the code to add these fields in document object and index it. I have not deleted whole indexed data and reindex it. But I expect whatever new documents are added, for those documents these two fields salary and experience should be reindexed. Eventually I have to delete the index and re-index it, but will do after all these things work. Now question is, what I need to do so that these fields are shown as index fields. Best Regards Kamal Mob: 9164 20 22 21 On Sun, May 19, 2013 at 9:12 AM, Gora Mohanty <g...@mimirtech.com> wrote: > 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 >