1.0.22 • Published 7 months ago

primeobjects-api-search v1.0.22

Weekly downloads
-
License
PRIVATE
Repository
github
Last release
7 months ago

primeobjects-api-search

must vs filter

must contributes to the score. In filter, the score of the query is ignored.

{
    "query": {
        "bool": {
            "must": [
                {
                    "term": {
                        "city": "city1"
                    }
                }
            ],
            "filter": {
                "term": {
                    "saleType": "sale_type1"
                }
            }
        }
    }
}

must vs should

must means: The clause (query) must appear in matching documents. These clauses must match, like logical AND. should means: At least one of these clauses must match, like logical OR.

Add new mapping to an existing mapping

PUT /program/_mapping
{
  "properties": {
    "departmentId": { "type": "text" }
  }
}

get mapping

GET /program/_mapping
1.0.22

7 months ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago