Reputation: 1821
I am supposed to perform a distributed search over already existing lucene indices. The problem with these are, they don't have an UUID at all. In fact there is no field that would uniquely identify a particular doc in a single core.
Now I try to perform a single core search (assume I am searching for logon), I get around 1500 results. The same thing when I perform s distributed search over two cores, I get hardly 6-8 results.
Why is this happening? Is it because of the absence of an unique document id, or is it due to something else? If it due to the lack of UUID, what is the workaround you would suggest(if at all something exists). If it is the later, where should the problem be?
Edit :
Here is my schema.xml. This is same in both the cores
Upvotes: 0
Views: 295
Reputation: 2549
It's prolly not the lack of UUID, but if you want to know how to create one automatically check http://wiki.apache.org/solr/UniqueKey
<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
<field name="id" type="uuid" indexed="true" stored="true" default="NEW"/>
Upvotes: 1