@Jason_Tran thank you so much for this answer I do understand everything. As you asked 3 questions below are the following answers.
- I am returning all the result documents together and the data in the collection is for one year.
- I really do not know the document count for each term it totally depends on the term I used.
For one above two questions I am thinking about a solution by using the date filter first and then searching the term you are right I need to index the date too and change the date format too.
but could you please share the correct syntax of using a date with the search query in simple search and in must and should too?
- the output of stats()
{
"ns" : "impact.article_fulltext",
"size" : NumberLong(19509585533),
"count" : 6393475.0,
"avgObjSize" : 3051.0,
"storageSize" : NumberLong(11533303808),
"capped" : false,
"wiredTiger" : {
"metadata" : {
"formatVersion" : 1.0
},
"creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,type=file,value_format=u",
"type" : "file",
"uri" : "statistics:table:collection-6-9203085737631202376",
"LSM" : {
"bloom filter false positives" : 0.0,
"bloom filter hits" : 0.0,
"bloom filter misses" : 0.0,
"bloom filter pages evicted from cache" : 0.0,
"bloom filter pages read into cache" : 0.0,
"bloom filters in the LSM tree" : 0.0,
"chunks in the LSM tree" : 0.0,
"highest merge generation in the LSM tree" : 0.0,
"queries that could have benefited from a Bloom filter that did not exist" : 0.0,
"sleep for LSM checkpoint throttle" : 0.0,
"sleep for LSM merge throttle" : 0.0,
"total size of bloom filters" : 0.0
},
"block-manager" : {
"allocations requiring file extension" : 108850.0,
"blocks allocated" : 2487158.0,
"blocks freed" : 2260525.0,
"checkpoint size" : NumberLong(11488280576),
"file allocation unit size" : 4096.0,
"file bytes available for reuse" : 44888064.0,
"file magic number" : 120897.0,
"file major version number" : 1.0,
"file size in bytes" : NumberLong(11533303808),
"minor version number" : 0.0
},
"btree" : {
"btree checkpoint generation" : 24811.0,
"btree clean tree checkpoint expiration time" : NumberLong(9223372036854775807),
"column-store fixed-size leaf pages" : 0.0,
"column-store internal pages" : 0.0,
"column-store variable-size RLE encoded values" : 0.0,
"column-store variable-size deleted values" : 0.0,
"column-store variable-size leaf pages" : 0.0,
"fixed-record size" : 0.0,
"maximum internal page key size" : 368.0,
"maximum internal page size" : 4096.0,
"maximum leaf page key size" : 2867.0,
"maximum leaf page size" : 32768.0,
"maximum leaf page value size" : 67108864.0,
"maximum tree depth" : 5.0,
"number of key/value pairs" : 0.0,
"overflow pages" : 0.0,
"pages rewritten by compaction" : 0.0,
"row-store empty values" : 0.0,
"row-store internal pages" : 0.0,
"row-store leaf pages" : 0.0
},
"cache" : {
"bytes currently in the cache" : 32718145.0,
"bytes dirty in the cache cumulative" : NumberLong(106693214626),
"bytes read into cache" : NumberLong(517832151735),
"bytes written from cache" : NumberLong(92076373337),
"checkpoint blocked page eviction" : 5947.0,
"data source pages selected for eviction unable to be evicted" : 25887.0,
"eviction walk passes of a file" : 3056723.0,
"eviction walk target pages histogram - 0-9" : 2586282.0,
"eviction walk target pages histogram - 10-31" : 290118.0,
"eviction walk target pages histogram - 128 and higher" : 0.0,
"eviction walk target pages histogram - 32-63" : 51760.0,
"eviction walk target pages histogram - 64-128" : 128563.0,
"eviction walks abandoned" : 54482.0,
"eviction walks gave up because they restarted their walk twice" : 2535193.0,
"eviction walks gave up because they saw too many pages and found no candidates" : 50588.0,
"eviction walks gave up because they saw too many pages and found too few candidates" : 5148.0,
"eviction walks reached end of tree" : 5268235.0,
"eviction walks started from root of tree" : 2645976.0,
"eviction walks started from saved location in tree" : 410747.0,
"hazard pointer blocked page eviction" : 846.0,
"in-memory page passed criteria to be split" : 574.0,
"in-memory page splits" : 287.0,
"internal pages evicted" : 114326.0,
"internal pages split during eviction" : 3.0,
"leaf pages split during eviction" : 110274.0,
"modified pages evicted" : 2179959.0,
"overflow pages read into cache" : 0.0,
"page split during eviction deepened the tree" : 0.0,
"page written requiring cache overflow records" : 135.0,
"pages read into cache" : 11598349.0,
"pages read into cache after truncate" : 0.0,
"pages read into cache after truncate in prepare state" : 0.0,
"pages read into cache requiring cache overflow entries" : 104.0,
"pages requested from the cache" : 234609621.0,
"pages seen by eviction walk" : 83939149.0,
"pages written from cache" : 2471972.0,
"pages written requiring in-memory restoration" : 288515.0,
"tracked dirty bytes in the cache" : 4504688.0,
"unmodified pages evicted" : 10935710.0
},
"cache_walk" : {
"Average difference between current eviction generation when the page was last considered" : 0.0,
"Average on-disk page image size seen" : 0.0,
"Average time in cache for pages that have been visited by the eviction server" : 0.0,
"Average time in cache for pages that have not been visited by the eviction server" : 0.0,
"Clean pages currently in cache" : 0.0,
"Current eviction generation" : 0.0,
"Dirty pages currently in cache" : 0.0,
"Entries in the root page" : 0.0,
"Internal pages currently in cache" : 0.0,
"Leaf pages currently in cache" : 0.0,
"Maximum difference between current eviction generation when the page was last considered" : 0.0,
"Maximum page size seen" : 0.0,
"Minimum on-disk page image size seen" : 0.0,
"Number of pages never visited by eviction server" : 0.0,
"On-disk page image sizes smaller than a single allocation unit" : 0.0,
"Pages created in memory and never written" : 0.0,
"Pages currently queued for eviction" : 0.0,
"Pages that could not be queued for eviction" : 0.0,
"Refs skipped during cache traversal" : 0.0,
"Size of the root page" : 0.0,
"Total number of pages currently in cache" : 0.0
},
"compression" : {
"compressed page maximum internal page size prior to compression" : 4096.0,
"compressed page maximum leaf page size prior to compression " : 32768.0,
"compressed pages read" : 11478869.0,
"compressed pages written" : 2421005.0,
"page written failed to compress" : 998.0,
"page written was too small to compress" : 49969.0
},
"cursor" : {
"bulk loaded cursor insert calls" : 0.0,
"cache cursors reuse count" : 3060833.0,
"close calls that result in cache" : 0.0,
"create calls" : 2331.0,
"insert calls" : 5473321.0,
"insert key and value bytes" : NumberLong(5985885968),
"modify" : 17575771.0,
"modify key and value bytes affected" : NumberLong(64607112871),
"modify value bytes modified" : 216058125.0,
"next calls" : 40669361.0,
"open cursor count" : 0.0,
"operation restarted" : 10.0,
"prev calls" : 1.0,
"remove calls" : 0.0,
"remove key bytes removed" : 0.0,
"reserve calls" : 0.0,
"reset calls" : 74299813.0,
"search calls" : 77818541.0,
"search near calls" : 24160712.0,
"truncate calls" : 0.0,
"update calls" : 0.0,
"update key and value bytes" : 0.0,
"update value size change" : 280870968.0
},
"reconciliation" : {
"dictionary matches" : 0.0,
"fast-path pages deleted" : 0.0,
"internal page key bytes discarded using suffix compression" : 2170919.0,
"internal page multi-block writes" : 6852.0,
"internal-page overflow keys" : 0.0,
"leaf page key bytes discarded using prefix compression" : 0.0,
"leaf page multi-block writes" : 114718.0,
"leaf-page overflow keys" : 0.0,
"maximum blocks required for a page" : 1.0,
"overflow values written" : 0.0,
"page checksum matches" : 38383.0,
"page reconciliation calls" : 2236972.0,
"page reconciliation calls for eviction" : 1443506.0,
"pages deleted" : 0.0
},
"session" : {
"object compaction" : 0.0
},
"transaction" : {
"update conflicts" : 0.0
}
},
"nindexes" : 3.0,
"indexBuilds" : [
],
"totalIndexSize" : 207925248.0,
"indexSizes" : {
"_id_" : 76206080.0,
"pubdate_1" : 36888576.0,
"articleid_1" : 94830592.0
},
"scaleFactor" : 1.0,
"ok" : 1.0,
"$clusterTime" : {
"clusterTime" : Timestamp(1676273747, 38),
"signature" : {
"hash" : BinData(0, "xBHdkvvZezlmwL1Bh0naumwr0kM="),
"keyId" : NumberLong(7155578345936125954)
}
},
"operationTime" : Timestamp(1676273747, 38)
}