I'm indexing 100 documents, then (after 2 seconds) I'm running a query that
based on the data in a particular field. The result.hits.total says 100 but
often there are only ~70 results returned. I've tried expicitly refreshing
the index after adding the docs but it doesn't seem to make any difference.
If I wait a minute or two I do get the output I'm expecting and I
understand there can be an indexing delay however saying there are 100
results but only returning 70 seems like a bug to me.
Are you setting your ID for your documents? Is it possible that sometimes you
update an existing document instead of creating it?
Do you use Bulk indexing? If so, did you check bulkResponses ?
Do you have always the same amount of documents when you search for it?
What query do you run? Did you try a matchAll() to see if all docs are here?
I'm indexing 100 documents, then (after 2 seconds) I'm running a query that
based on the data in a particular field. The result.hits.total says 100 but
often there are only ~70 results returned. I've tried expicitly refreshing the
index after adding the docs but it doesn't seem to make any difference.
If I wait a minute or two I do get the output I'm expecting and I understand
there can be an indexing delay however saying there are 100 results but only
returning 70 seems like a bug to me.
I've just realised the title may be erroneous, I meant querying in the
generic sense, I'm actually running a search (see exact call below).
I'm setting an ID for each doc. Before I index the docs I delete the index
so I'm starting with a clean slate. I'm not using bulk anything. Every time
I query the hits total says 100 (which is correct).
On Wednesday, January 16, 2013 11:44:52 AM UTC, David Pilato wrote:
Are you setting your ID for your documents? Is it possible that
sometimes you update an existing document instead of creating it?
Do you use Bulk indexing? If so, did you check bulkResponses ?
Do you have always the same amount of documents when you search for it?
What query do you run? Did you try a matchAll() to see if all docs are
here?
I'm indexing 100 documents, then (after 2 seconds) I'm running a query
that based on the data in a particular field. The result.hits.total says
100 but often there are only ~70 results returned. I've tried expicitly
refreshing the index after adding the docs but it doesn't seem to make any
difference.
If I wait a minute or two I do get the output I'm expecting and I
understand there can be an indexing delay however saying there are 100
results but only returning 70 seems like a bug to me.
I've just realised the title may be erroneous, I meant querying in the
generic sense, I'm actually running a search (see exact call below).
I'm setting an ID for each doc. Before I index the docs I delete the index
so I'm starting with a clean slate. I'm not using bulk anything. Every time
I query the hits total says 100 (which is correct).
On Wednesday, January 16, 2013 11:44:52 AM UTC, David Pilato wrote:
Are you setting your ID for your documents? Is it possible that
sometimes you update an existing document instead of creating it?
Do you use Bulk indexing? If so, did you check bulkResponses ?
Do you have always the same amount of documents when you search for it?
What query do you run? Did you try a matchAll() to see if all docs are
here?
I'm indexing 100 documents, then (after 2 seconds) I'm running a query
that based on the data in a particular field. The result.hits.total says
100 but often there are only ~70 results returned. I've tried expicitly
refreshing the index after adding the docs but it doesn't seem to make any
difference.
If I wait a minute or two I do get the output I'm expecting and I
understand there can be an indexing delay however saying there are 100
results but only returning 70 seems like a bug to me.
Edit: I've posted this twice already and it keep being deleted, what am I
doing wrong?
I've just realised the title may be erroneous, I meant querying in the
generic sense, I'm actually running a search (see exact call below).
I'm setting an ID for each doc. Before I index the docs I delete the index
so I'm starting with a clean slate. I'm not using bulk anything. Every time
I query the hits total says 100 (which is correct).
On Wednesday, January 16, 2013 11:44:52 AM UTC, David Pilato wrote:
Are you setting your ID for your documents? Is it possible that
sometimes you update an existing document instead of creating it?
Do you use Bulk indexing? If so, did you check bulkResponses ?
Do you have always the same amount of documents when you search for it?
What query do you run? Did you try a matchAll() to see if all docs are
here?
I'm indexing 100 documents, then (after 2 seconds) I'm running a query
that based on the data in a particular field. The result.hits.total says
100 but often there are only ~70 results returned. I've tried expicitly
refreshing the index after adding the docs but it doesn't seem to make any
difference.
If I wait a minute or two I do get the output I'm expecting and I
understand there can be an indexing delay however saying there are 100
results but only returning 70 seems like a bug to me.
Edit: I've posted this twice already and it keep being deleted, what am I
doing wrong?
I've just realised the title may be erroneous, I meant querying in the
generic sense, I'm actually running a search (see exact call below).
I'm setting an ID for each doc. Before I index the docs I delete the index so
I'm starting with a clean slate. I'm not using bulk anything. Every time I
query the hits total says 100 (which is correct).
On Wednesday, January 16, 2013 11:44:52 AM UTC, David Pilato wrote:
Are you setting your ID for your documents? Is it possible that
sometimes you update an existing document instead of creating it?
Do you use Bulk indexing? If so, did you check bulkResponses ?
Do you have always the same amount of documents when you search for it?
What query do you run? Did you try a matchAll() to see if all docs are
here?
> > > I'm indexing 100 documents, then (after 2 seconds) I'm running a
> > > query that based on the data in a particular field. The
> > > result.hits.total says 100 but often there are only ~70 results
> > > returned. I've tried expicitly refreshing the index after adding
> > > the docs but it doesn't seem to make any difference.
If I wait a minute or two I do get the output I'm expecting and I
understand there can be an indexing delay however saying there are 100
results but only returning 70 seems like a bug to me.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.