Imtiaz Mangerah
01/20/2022, 10:46 AMicd10,description
E78.1,Pure hyperglyceridaemia
E78.2,Mixed hyperlipidaemia
E78.3,Hyperchylomicronaemia
and my index is as follows:
{
'name': 'diagnosis',
'fields': [
{'name': 'id', 'type': 'string'}, # maps to icd10
{'name': 'code', 'type': 'string'}, # maps to icd10
{'name': 'description', 'type': 'string'}, # maps to description
]
}
Running a query E78
I get the results in reverse order (E78.3, followed by E78.2 and E78.1)
If I seed the data in reverse order than I get the results in the correct order.
I would just like to understand this behaviour better, and how order of insertion affects sorting (and if its fine to rely on this for my use case since the data wont change).Kishore Nallan
01/20/2022, 10:48 AME78
all matching documents have the same text match score, so to break the tie, we sort on their internal document ID, which is an increasing sequential ID.Imtiaz Mangerah
01/20/2022, 10:50 AMKishore Nallan
01/20/2022, 10:50 AMImtiaz Mangerah
01/20/2022, 10:50 AMKishore Nallan
01/20/2022, 10:50 AM