How to set "search_type" in elasticsearch-js?

kairavichahal

After looking at this question: ElasticSearch default scoring mechanism, I would like to use "dfs_query_then_fetch" rather than the default "query_then_fetch" search type. However, I am using elasticsearch-js client, and I can't figure out how to specify this. Does anyone know?

keety

As per the documentation you should be able to achieve this by specifying the
searchType option.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set "search_type" to "count" in elasticsearch-rails?

From Dev

Elasticsearch - search_type as a body parameter

From Dev

How to include `search_type=count` in a query?

From Dev

How to set _id in elasticsearch 2.0

From Dev

How to set a global _ttl in elasticsearch

From Dev

ElasticSearch: How to set a default mapping to a template

From Dev

How to set the data directory of ElasticSearch with Spring Boot

From Dev

How to set time in log as main @timestamp in elasticsearch

From Dev

How to calculate cooccurrences on a set of texts with Elasticsearch

From Dev

How to use getMapping function of Elasticsearch JS

From Dev

How to set visible posts by js?

From Dev

How to set input value with JS

From Dev

How to set options in vis js?

From Dev

How to set case_insensitive for term query in elasticsearch?

From Dev

How to set the logging level for the elasticsearch library differently to my own logging?

From Dev

How to set up routing in mapping with elasticsearch-rails

From Dev

Elasticsearch - How to get min/max/avg of set of nested documents

From Dev

How to set es.nodes parameter to multiple Elasticsearch nodes for Spark ?

From Dev

How to set the logging level for the elasticsearch library differently to my own logging?

From Dev

How to set case_insensitive for term query in elasticsearch?

From Dev

How to restrict certain indices to a set of machines in an Elasticsearch cluster

From Dev

How to set ttl "time to live" in play2-elasticsearch

From Dev

How can I set index_settings for Elasticsearch in elasticsearch-jdbc-river?

From Dev

Set ID on creation in elasticsearch

From Dev

Set the clusterName in ElasticSearch

From Dev

How do I turn logging off for Elasticsearch in Node.js?

From Dev

How to count of fields with the same value in elastic.js (elasticsearch)?

From Dev

How to populate ElasticSearch with XML files on Node.js server?

From Dev

How to set Electron size in Nightmare.js?

Related Related

  1. 1

    How to set "search_type" to "count" in elasticsearch-rails?

  2. 2

    Elasticsearch - search_type as a body parameter

  3. 3

    How to include `search_type=count` in a query?

  4. 4

    How to set _id in elasticsearch 2.0

  5. 5

    How to set a global _ttl in elasticsearch

  6. 6

    ElasticSearch: How to set a default mapping to a template

  7. 7

    How to set the data directory of ElasticSearch with Spring Boot

  8. 8

    How to set time in log as main @timestamp in elasticsearch

  9. 9

    How to calculate cooccurrences on a set of texts with Elasticsearch

  10. 10

    How to use getMapping function of Elasticsearch JS

  11. 11

    How to set visible posts by js?

  12. 12

    How to set input value with JS

  13. 13

    How to set options in vis js?

  14. 14

    How to set case_insensitive for term query in elasticsearch?

  15. 15

    How to set the logging level for the elasticsearch library differently to my own logging?

  16. 16

    How to set up routing in mapping with elasticsearch-rails

  17. 17

    Elasticsearch - How to get min/max/avg of set of nested documents

  18. 18

    How to set es.nodes parameter to multiple Elasticsearch nodes for Spark ?

  19. 19

    How to set the logging level for the elasticsearch library differently to my own logging?

  20. 20

    How to set case_insensitive for term query in elasticsearch?

  21. 21

    How to restrict certain indices to a set of machines in an Elasticsearch cluster

  22. 22

    How to set ttl "time to live" in play2-elasticsearch

  23. 23

    How can I set index_settings for Elasticsearch in elasticsearch-jdbc-river?

  24. 24

    Set ID on creation in elasticsearch

  25. 25

    Set the clusterName in ElasticSearch

  26. 26

    How do I turn logging off for Elasticsearch in Node.js?

  27. 27

    How to count of fields with the same value in elastic.js (elasticsearch)?

  28. 28

    How to populate ElasticSearch with XML files on Node.js server?

  29. 29

    How to set Electron size in Nightmare.js?

HotTag

Archive