Search Engine Inverted Index

I am trying to write code to create a small application to search for text from files.

Files need to be scanned, and I need to put an inverted index to speed up the search.

My problem is that I have ideas on what the parser will look like; I want to implement AND, NOT, OR in a query.

While I couldn't figure out what my index should be ... I never created an inverted index, so if anyone could suggest a possible way to do this, I would be very grateful. I know theoretically how this works, but my problem is that I absolutely do not know how this happened in MySql. I also need to specify weight indices.

+3
source share
2 answers

Here is a simple implementation. http://rosettacode.org/wiki/Inverted_Index

+3
source

Option 1: Apache Solr / Lucene. Option 2: support mysql full text index.

+1
source

Source: https://habr.com/ru/post/1726737/


All Articles