Elasticsearch: Search Index performance with large documents (PDF, doc, txt) slow

I have an index of 65,000 documents (pdf, docx, txt, .., etc.) in the search for elasticity using the mapper binding. now I want to search the contents in this saved document using the following query:

"from" : 0, "size" : 50,
"query": {
    "match": {
        "my_attachment.content": req.params.name
     }
}

but it takes 20-30 seconds to get the results. This is a very slow answer. so what should i do for a quick response? any idea?

displayed here:

"my_attachment": {
                  "type": "attachment",
                  "fields": {
                     "content": {
                        "type": "string",
                        "store": true,
                        "term_vector": "with_positions_offsets"
                     }
                 }
}
+4
source share
1 answer

4 5, 4 , , . , 4 . . , 4 (= ), .

, curl localhost:9200/your_documents_index/_stats, , "" ( ) 4,2 . , . size: 50 , .

content ( ) store: true, , ,

. , , ( store true ), , _source, .

, _source , , . , , . store: true .

(curl -XGET "http://localhost:9200/_nodes/stats") , node , .

+5

Source: https://habr.com/ru/post/1648508/


All Articles