lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Different result for the same query?
Date Thu, 07 Apr 2011 16:59:14 GMT
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.fraisse@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.
>

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