lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amel Fraisse <amel.frai...@gmail.com>
Subject Different result for the same query?
Date Thu, 07 Apr 2011 14:21:08 GMT
Hello every body,

I am using Solr for indexing and searching.

I am using 2 classes for searching document: In the first one I'm
instanciating a SolrServer to search documents as follows :

server = new EmbeddedSolrServer(
coreContainer, "");
server.add(doc);
query.setQuery("id:"+idDoc);
server.query(query);

The response contains 2 document.

In the second class I am using SolrCore for indexing and searching (because
I need 2 indexes) as follows:

servercore2 = new EmbeddedSolrServer(coreContainer, "core2");
servercore2.add(doc2);
query.setQuery("id:"+idDoc);
QueryResponse rsp = servercore2.query(query);


The response contains only 1 document.


Thank you very much for your help.

Amel.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message