Pratik Poddar
Pratik Poddar

Reputation: 1345

Elastic Search - List / Delete Document and Give more weight to recent Document

I have a few questions on elastic search:

  1. How to list all documents that are indexed
  2. How to delete a doc from the index
  3. How can I give more recent indices more weightage in search?
  4. How can I add auto_time_add = True type thing in elastic search?

Upvotes: 0

Views: 155

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

Please refer to the following for answers to your questions:

  1. Refer to the Match All Query for listing all indexed documents.
  2. Refer to the Delete API for details on deleting docs from your index.
  3. Refer to the Variable Boosts section of Advanced Scoring in Elasticsearch for an example of using Function Score Query to boost more recent docs.
  4. Use the Elasticsearch _timestamp field

Upvotes: 1

Related Questions