This will make a unique key for you: In <types> <fieldType name="uuid" class="solr.UUIDField" indexed="true" /> ........................ In <fields> <field name="id" type="uuid" indexed="true" stored="true" default="NEW"/>
2010/8/21 Rafał Kuć <ra...@alud.com.pl>: > Hello! > >> is there need to allot a unique id to every file? > > You don`t need one, unique id is not mandatory, but many features wont > work without it. > >> do we have to specify the id manually or solr does it? > > Solr doesn`t do it automatically, You have to do it. > >> how to allot an unique id to text file? > > Just generate an id in your application and pass it to ie. xml file. > > If you have some questions about uniqe id, this page should be a place > for You http://wiki.apache.org/solr/UniqueKey > > -- > Regards, > Rafał Kuć > > -- Lance Norskog goks...@gmail.com