Stefan4472 / simple-search-engine

GNU General Public License v3.0
0 stars 0 forks source link

Index user-provided metadata #17

Open Stefan4472 opened 2 years ago

Stefan4472 commented 2 years ago

For example, the slug, title, or any other provided information.

Right now, the search does not include the actual title of the document, for example.

This will, however, require allowing the user to specify a document title along with the slug during indexing.

Stefan4472 commented 2 years ago

This could be implemented by adding "tagged" information to posting lists, e.g. (Type.TITLE, 1), (Type.TEXT, 23), (Type.TEXT, 34), etc. Each posting now includes some structural information (via enum).