Difference between #indexed documents and #results in *:* query

2012-01-25 Thread m0rt0n
Hello,

I have seen that I am getting 913 documents indexed:

str name=Total Requests made to DataSource1/str
str name=Total Rows Fetched913/str
str name=Total Documents Skipped0/str
str name=Full Dump Started2012-01-25 10:22:39/str
str name=Indexing completed. Added/Updated: 913 documents. Deleted 0
documents./str
str name=Committed2012-01-25 10:22:44/str
str name=Optimized2012-01-25 10:22:44/str
str name=Total Documents Processed913/str
str name=Time taken 0:0:5.10/str

... and, when I do a search for *:* (all documents) I get 383 results
result name=response numFound=383 start=0 maxScore=1.0

Is this normal? if it is not, do you know why it could be this way and what
could I do to fix it?

Thanks in advance!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-indexed-documents-and-results-in-query-tp3687217p3687217.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Difference between #indexed documents and #results in *:* query

2012-01-25 Thread Jan Høydahl
Hi,

No, it's not normal :) Have you tried to hit SHIFT-F5 to make sure you're not 
getting tricked by browser caching? Or try a slightly different query like id:*
You can also visit the Schema browser page of Solr admin and check the stats 
on how many docs are in the index.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 25. jan. 2012, at 10:35, m0rt0n wrote:

 Hello,
 
 I have seen that I am getting 913 documents indexed:
 
 str name=Total Requests made to DataSource1/str
 str name=Total Rows Fetched913/str
 str name=Total Documents Skipped0/str
 str name=Full Dump Started2012-01-25 10:22:39/str
 str name=Indexing completed. Added/Updated: 913 documents. Deleted 0
 documents./str
 str name=Committed2012-01-25 10:22:44/str
 str name=Optimized2012-01-25 10:22:44/str
 str name=Total Documents Processed913/str
 str name=Time taken 0:0:5.10/str
 
 ... and, when I do a search for *:* (all documents) I get 383 results
 result name=response numFound=383 start=0 maxScore=1.0
 
 Is this normal? if it is not, do you know why it could be this way and what
 could I do to fix it?
 
 Thanks in advance!
 
 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Difference-between-indexed-documents-and-results-in-query-tp3687217p3687217.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Difference between #indexed documents and #results in *:* query

2012-01-25 Thread m0rt0n
Thanks a lot for your answer; really appreciated. 

Unfortunately, I am still getting the same number of results:
- I tried by refreshing the browser cache.
- I tried another search by the ID:*
- And went to the http://localhost:8983/solr/browse?q=

... and got the same number of results. (383 results found in 13 ms Page 1
of 1)

I don't understand why it says that it is indexing 913 (see below) and it
just finds 383, that makes no sense to me and I am starting to go crazy :-)

Any further help appreciated. Thanks!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-indexed-documents-and-results-in-query-tp3687217p3687646.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Difference between #indexed documents and #results in *:* query

2012-01-25 Thread Sami Siren
Does all your 913 documents contain a unique key?  The uniqueKey field
is id by default.

--
 Sami Siren

On Wed, Jan 25, 2012 at 3:16 PM, m0rt0n rau...@gmail.com wrote:
 Thanks a lot for your answer; really appreciated.

 Unfortunately, I am still getting the same number of results:
 - I tried by refreshing the browser cache.
 - I tried another search by the ID:*
 - And went to the http://localhost:8983/solr/browse?q=

 ... and got the same number of results. (383 results found in 13 ms Page 1
 of 1)

 I don't understand why it says that it is indexing 913 (see below) and it
 just finds 383, that makes no sense to me and I am starting to go crazy :-)

 Any further help appreciated. Thanks!

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Difference-between-indexed-documents-and-results-in-query-tp3687217p3687646.html
 Sent from the Solr - User mailing list archive at Nabble.com.


Re: Difference between #indexed documents and #results in *:* query

2012-01-25 Thread m0rt0n
BINGO!!

Yep, I actually was assuming that the ID field was unique; and after your
response I went to my DBA and he told me that it wasn't.

Then, I made up a unique key by concattening three fields and that works.

Thanks a lot for your very helpful answer!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-indexed-documents-and-results-in-query-tp3687217p3687970.html
Sent from the Solr - User mailing list archive at Nabble.com.