In Lesson 1.6 the Geospatial Query, the number of documents matching the query is 99 and Compass retrieved exactly the 99 documents matching the query (100%).
For previous lessons, I didn’t notice that happening. Could someone elaborate on this?
Can you help me to know, how can i find a particular location by name only instead of wasting time in drag and drag to find a place which is mentioned in the lab exercise.
In the example ‘Query returned 71085 documents. This report is based on a sample of 1000 documents (1.41%).', you obtain 1.41% because 1000 (the size of the sample) is the 1.41 percent of 71085.
In the second example: ‘the number of documents matching the query is 99 and Compass retrieved exactly the 99 documents matching the query (100%).’, you obtain 100% because the number of documents matching the query is less than 1000 (the sampleSize is set to 1000 documents.), so the query returned all documents matching that filter and not only a sample.
Interesting question. I am sorry for the delayed response.
In Compass, we show schema for maximum1000 documents which are chosen randomly. The % in the bracket describes the % composition from total documents given for anaylze.
Consider this:
So, maximum documents that can be taken in sample is 1000 documents i.e. ( 1000/71085 ) * 100 = 1.41%.
But when you filter documents and you have total 99 documents which is less than 1000, so the Schema takes all the documents to analyze. Thats why it shows 100% i.e (99/99) * 100 = 100%.
I think if you Google the coordinates using name of location, it will be easy for you. Just type the coordinates in the filter query section using appropriate query operators.