IMPROVING TEXT SEARCH MEMORY EFFICIENCY WITH NSW TEXT INDEXING

Authors

  • Dmytro Dashenkov Software engineering department, Kharkiv National University of Radioelectronics, Kharkiv, Ukraine https://orcid.org/0000-0001-9797-1863
  • Serhii Smelyakov Software engineering department, Kharkiv National University of Radioelectronics, Kharkiv, Ukraine
  • Anastasiya Chupryna Software engineering department, Kharkiv National University of Radioelectronics, Kharkiv, Ukraine
  • Loreta Savulioniene Faculty of Economics, Vilniaus kolegija Higher Education Institution, Vilnius, Lithuania https://orcid.org/0009-0009-9127-1300
  • Dainius Savulionis Faculty of Electronics and Informatics, Vilniaus kolegija Higher Education Institution, Vilnius, Lithuania https://orcid.org/0009-0004-0224-1796
  • Paulius Sakalys Faculty of Electronics and Informatics, Vilniaus kolegija Higher Education Institution, Vilnius, Lithuania https://orcid.org/0009-0005-1096-3577

DOI:

https://doi.org/10.68302/std2026.vol3.215

Keywords:

full text search, memory efficiency, navigable small world, spelling correction

Abstract

Modern day full text search relies on a simple yet robust inverted index data structure to find documents matching a text query. However, this approach is limited by the required spelling checker, which often has memory requirements comparable to the index itself. In this work, a novel approach to text indexing is introduced. Based on the navigable small world data structure, it offers a two-in-one solution for search with built-in spelling correction, sacrificing some performance for a substantial memory economy. The proposed index, just like the conventional inverted index, uses separate tokens extracted from a document as the main building blocks. The tokens are organized in a graph, each node representing one token. The nodes list all the document identifiers for the documents where the token is found. The edges of the graph connect tokens that are similar in terms of edit distance. The proposed approach utilizes an arbitrary ranking function to find relevant documents, the state-of-the-art BM25 ranking function is recommended as a reasonable default. The function values are weighed to take the edit distance into account. The ability to process misspelled words allows avoiding maintaining a separate structure for spelling correction while still generating search results which account for possible misspellings in the query phrase. The search time losses are attributed to the neighbor exploration while traversing the navigable small world data structure, and thus can be mitigated by configuring the data structure to maintain a fairly low number of connections. Such a configuration also provides a hard limit to the number of edits allowed in a single query term. The paper discusses in detail the ways of picking the optimal parameters for the algorithm, as well as the limitations of the proposed approach.

Downloads

Download data is not yet available.

References

[1] H. Bast and M. Celikik, “Efficient fuzzy search in large text collections,” ACM Transactions on Information Systems, vol. 31, no. 2, pp. 1–59, May 2013, doi: https://doi.org/10.1145/2457465.2457470.

[2] S. Ji, G. Li, C. Li, and J. Feng, “Efficient interactive fuzzy keyword search,” The Web Conference, Apr. 2009, doi: https://doi.org/10.1145/1526709.1526760.

[3] I. Zelch, G. Lahmann, and M. Hagen, “Embedding-based Query Spelling Correction,” in WOWS’24: 1st International Workshop on Open Web Search, Glasgow, Scotland, Mar. 2024. Accessed: Apr. 08, 2026. [Online]. Available: https://ceur-ws.org/Vol-3689/WOWS_2024_paper_4.pdf

[4] S. K. Singh, “Spelling Correction in Healthcare Query-Answer Systems: Methods, Retrieval Impact, and Empirical Evaluation,” arXiv.org, Feb. 2026, doi: https://doi.org/10.48550/arXiv.2603.19249.

[5] C. Kamphuis, P. de Vries, L. Boytsov, and J. Lin, “Which BM25 Do You Mean? A Large-Scale Reproducibility Study of Scoring Variants,” in Advances in Information Retrieval, Springer Science+Business Media, Apr. 2020, pp. 28–34. doi: https://doi.org/10.1007/978-3-030-45442-5_4.

[6] R. Lynnyk, V. Vysotska, Z. Hu, D. Uhryn, L. Diachenko, and K. Smelyakov, “Information Technology for Modelling Social Trends in Telegram Using E5 Vectors and Hybrid Cluster Analysis,” International Journal of Information Technology and Computer Science, vol. 17, no. 4, pp. 80–119, Aug. 2025, doi: https://doi.org/10.5815/ijitcs.2025.04.07.

[7] V. Vysotska, K. Smelyakov, A. Chupryna, M. Derenskyi, V. Repikhov, and M. Hvozdiev, “AI assistant for intelligent interaction and route optimization in offshore turbine maintenance system,” Proceedings of the PhD Workshop on Artificial Intelligence in Computer Science at 9th International Conference on Computational Linguistics and Intelligent Systems (CoLInS-2025), vol. 4015, May 2025, doi: https://doi.org/10.31110/colins/2025-3/001.

[8] V. Filatov, O. Zolotukhin, and M. Kudryavtseva, “Intellectual data analysis in relational information and analytical systems,” Innovative Technologies And Scientific Solutions For Industries, no. 4(34), pp. 101–111, Dec. 2025, doi: https://doi.org/10.30837/2522-9818.2025.4.101.

[9] G. E. Pibiri and R. Venturini, “Techniques for Inverted Index Compression,” ACM Computing Surveys, vol. 53, no. 6, pp. 1–36, Feb. 2021, doi: https://doi.org/10.1145/3415148.

[10] “languagetool-org/languagetool,” 2024, gitHub repository. [Online]. Available: https://github.com/languagetool-org/languagetool

[11] Z. Li, Y. Li, Y. Zhu, C. Ge, Z. Chen, and Y. Gao, “All-in-one Graph-based Indexing for Hybrid Search on GPUs,” arXiv.org, 2025, doi: https://doi.org/10.48550/arXiv.2511.00855.

Downloads

Published

17.09.2026

How to Cite

[1]
D. Dashenkov, S. Smelyakov, A. Chupryna, L. Savulioniene, D. Savulionis, and P. Sakalys, “IMPROVING TEXT SEARCH MEMORY EFFICIENCY WITH NSW TEXT INDEXING”, SysTechDev, vol. 3, pp. 53–57, Sep. 2026, doi: 10.68302/std2026.vol3.215.