Rohit, I'd guess you don't have <uniqueKey> set to id in schema.xml.
Erik
On Jan 9, 2009, at 1:57 AM, rohit arora wrote:
Hi,
I have add one document only single time but the out put provided by
lucene give me
the same document multiple times..
If i specify rows=2 in out put same document will be 2 times.
If i specify rows=10 in out put same document will be 10 times.
I have already defined 'id' field as a uniqueKey in the schema.xml
with regards
Rohit Arora
--- On Fri, 1/9/09, Shalin Shekhar Mangar <shalinman...@gmail.com>
wrote:
From: Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject: Re: Problem in Out Put of Search
To: solr-user@lucene.apache.org
Date: Friday, January 9, 2009, 11:55 AM
There are two documents in that response. Are you adding the same
document
multiple times to Solr?
You can also specify a uniqueKey in the schema.xml which will make
sure that
Solr keeps only one document for a given key and removes the duplicate
documents.
In the response you have pasted, the 'id' field looks like it should
have
been defined as a uniqueKey.
On Fri, Jan 9, 2009 at 11:12 AM, rohit arora
<rohitarora...@yahoo.com>wrote:
Hi,
It gives this out put ..
<doc>
<float name="score">5.361002</float>
<str name="id">8232</str>
<str name="name">Quality Testing
International</str>
<str name="large_desc">
Quality Testing International the ideal exhibition for measuring
technique
testing of materials and quality assurance. Profile for exhibit
include
Customer profiling; customer marketing; loyalty systems and
operators;
customer intelligence; market research and analysis; customer
experience
management; employee motivation and incentivising; data warehousing/
data
mining; employee training; contact/call centre; customer service
management;
sales promotions and incentives; field marketing; CRM solutions.
</str>
<str name="small_desc">
Quality Testing International the ideal exhibition for measuring
technique
testing of materials and quality assurance.
</str>
</doc>
<doc>
<float name="score">5.361002</float>
<str name="id">8232</str>
<str name="name">Quality Testing
International</str>
<str name="large_desc">
Quality Testing International the ideal exhibition for measuring
technique
testing of materials and quality assurance. Profile for exhibit
include
Customer profiling; customer marketing; loyalty systems and
operators;
customer intelligence; market research and analysis; customer
experience
management; employee motivation and incentivising; data warehousing/
data
mining; employee training; contact/call centre; customer service
management;
sales promotions and incentives; field marketing; CRM solutions.
</str>
<str name="small_desc">
Quality Testing International the ideal exhibition for measuring
technique
testing of materials and quality assurance.
</str>
</doc>
If you look it provide same record of (id,name,large_desc,small_desc)
multiple times..
I have attached the out put in a (.txt) file..
with regards
Rohit Arora
--- On *Thu, 1/8/09, Erik Hatcher <e...@ehatchersolutions.com>*
wrote:
From: Erik Hatcher <e...@ehatchersolutions.com>
Subject: Re: Problem in Out Put of Search
To: solr-user@lucene.apache.org
Date: Thursday, January 8, 2009, 7:10 PM
Please provide an example of what you mean.
What and how did you index? What
was the query?
Erik
On Jan 8, 2009, at 8:34 AM, rohit arora wrote:
Hi,
I have installed solr lucene 1.3. I am facing a problem wile
searching it
did not provides multiple records.
Instead of providing multiple records it provides single record
multiple
times..
with regards
Rohit Arora
--
Regards,
Shalin Shekhar Mangar.