funderburkjim / kosha-dev

Develop xml and html for anekArthaka and samAnArthaka Sanskrit dictionaries
1 stars 1 forks source link

Advanced search order #7

Closed funderburkjim closed 1 year ago

funderburkjim commented 1 year ago

The advanced search uses a file (query_dump.txt). This file is created by init_query.py which reads the xml file. This file contains a line for each record of the xml file.

An advanced search reads the query_dump.txt file, and looks for matches to the user's query on each line of query_dump.

Thus, the results are in the order of records of the xml file.

image
funderburkjim commented 1 year ago

change to headword order

sort the xml records in sanskrit-alphabetical order of key1.

Will do this.

funderburkjim commented 1 year ago

The result with key1-alphabetical ordering

image

This change done in the 'v1' version of kosha-dev.

Looks ok to me.