Skip to content

Commit

Permalink
fixing integration testst
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Oct 11, 2024
1 parent f5da576 commit 1e36249
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ expected:
total:
value: 100
---
# elasticsearch accepts this query
engines:
- quickwit
json:
query:
query_string:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ json:
range:
repo.name:
gte: "h"
lte: "z"
lte: "i"
expected:
hits:
total:
value: 62
value: 1
relation: "eq"
---
# This field is a JSON field and has fast field normalization.
Expand All @@ -218,6 +218,8 @@ expected:
---
# This field is a JSON field and has fast field normalization.
# That means it is case insensitive
engines:
- quickwit
json:
query:
range:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ expected:
total:
value: 1
---
engines:
# TODO check the discrepancy with ES
- quickwit
json:
query:
multi_match:
Expand All @@ -87,20 +90,6 @@ expected:
total:
value: 4
---
# This query fails on elasticsearch, with an error message
# explaining position are missing for one of the fields.
#
# Todo: Somehow we accept it on quickwit.
engines:
- elasticsearch
json:
query:
multi_match:
type: phrase
query: the pomle missingtoken
fields: ["payload.commits.message", "actor.login"]
status_code: 400
---
json:
query:
multi_match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ expected:
method: [GET]
engines:
- quickwit
- elasticsearch
endpoint: "_stats"
expected:
_all:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ json: {
method: PUT
endpoint: gharchive
json: {
"settings": {
"analysis": {
"normalizer": {
"keyword_lowercase": {
"type": "custom",
"filter": ["lowercase"]
},
"keyword_keepcase": { "type": "custom" }
}
}
},
"mappings": {
"properties": {
"id": {
Expand All @@ -47,7 +58,8 @@ json: {
"store": true
},
"login": {
"type": "text",
"type": "keyword",
"normalizer": "keyword_lowercase",
"store": true,
"norms": false,
"index_options": "docs"
Expand Down Expand Up @@ -79,7 +91,8 @@ json: {
"store": true
},
"name": {
"type": "text",
"type": "keyword",
"normalizer": "keyword_keepcase",
"store": true
},
"url": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,20 @@ json:
timestamp_field: created_at
mode: dynamic
field_mappings:
- name: repo.name
type: text
fast: true
indexed: true
- name: actor.id
type: u64
fast: true
indexed: true
- name: repo
type: object
field_mappings:
- name: name
type: text
fast: true
indexed: true
# - name: actor
# type: object
# field_mappings:
# - name: id
# type: u64
# fast: true
# indexed: true
- name: public
type: bool
fast: false
Expand Down

0 comments on commit 1e36249

Please sign in to comment.