일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- TensorFlow
- Java
- 차트
- Python
- token filter test
- MySQL
- aggregation
- Mac
- zip 파일 암호화
- License
- zip 암호화
- 900gle
- query
- plugin
- Kafka
- 파이썬
- ELASTIC
- analyzer test
- matplotlib
- license delete
- docker
- aggs
- sort
- Test
- Elasticsearch
- high level client
- flask
- API
- springboot
- licence delete curl
- Today
- Total
개발잡부
elasticsearch.exceptions.RequestError: RequestError(400, 'illegal_argument_exception', "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards 본문
elasticsearch.exceptions.RequestError: RequestError(400, 'illegal_argument_exception', "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards
닉의네임 2022. 8. 12. 19:39에러메시지를 확인해 보면
startOffset은 음수면 에러발생
endOffset은 startOffset 보다 같거나 커야하고
startOffset은 역행하면 안됨
elasticsearch.exceptions.RequestError: RequestError(400, 'illegal_argument_exception', "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=36,endOffset=37,lastStartOffset=37 for field 'itemNm'")
analyzer 를 통해서 분해된 토큰은 확인 start_offset, end_offset 이 증가 하지 않고 감소한 상태로 분해된 토큰이 있으면
그 부분이 문제가 됨..
대부분의 오픈 소스는 offset 관련 이슈가 발생하지 않으나 token filter 를 커스텀 했을 경우 발생됨
https://ldh-6019.tistory.com/288
[es] analyzer test
GET _analyze { "text": "The quick brown fox jumps over the lazy dog", "tokenizer": "whitespace", "filter": [ "lowercase", "stop", "snowball" ] } GET my_index3/_analyze { "analyzer": "my_custom_analy..
ldh-6019.tistory.com