elasticsearch: find date with switched numbers -


i want know if it's possible solve following problem.

the documents want search have key named "dateofbirth" formatted dd.mm.yyyy.

let's say:

"dateofbirth": "03.10.1961" 

now want document 2 different ways

the first way perfect match:

"dateofbirth": {     "query": 03.10.1961 } 

the second way 1 i'm struggling with. want result searching two switched numbers:

"dateofbirth": {     "query": 03.01.1961 } 

or

"dateofbirth": {     "query": 03.10.1916 } 

my fist idea solve fuzzi param. thing i don't want reslut searching for:

"dateofbirth": {     "query": 03.11.1916 } 

is there way result 03.10.1961 through searching switched chars no result through searching wrong chars?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -