lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Adding custom field for sorting?
Date Wed, 26 Mar 2008 23:46:46 GMT
: 
: Inspirited by the previous post, does it possible to add my custom field and
: use it for sorting the search result?
: If It is possible, what will be the step? Do I need to modify the source
: code?

adding a custom field is easy, just add the <field/> to your schema.xml 
and put data in it.

adding a custom *fieldtype* is trickier ... compile your new fieldtype 
against the solr code base, package it in a jar, and put that jar in the 
plugin lib dir...

	http://wiki.apache.org/solr/SolrPlugins

...no need to modify any Solr code.




-Hoss


Mime
View raw message