I'd advise getting a copy of Luke and examining your
indexes. The information you've provided doesn't really
tell us much.

Although I do notice you don't commit in your example code...

Best
Erick

On Thu, Apr 7, 2011 at 10:21 AM, Amel Fraisse <amel.frai...@gmail.com>wrote:

> 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.
>

Reply via email to