lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: solr
Date Sat, 21 Aug 2010 21:22:23 GMT
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ć <rafal@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
goksron@gmail.com

Mime
View raw message