loupe-php / loupe

A full text search engine with tokenization, stemming, typo tolerance, filters and geo support based on only PHP and SQLite.
MIT License
271 stars 8 forks source link

Support for boost function #78

Open NeoBlack opened 2 months ago

NeoBlack commented 2 months ago

It would be nice to have boost functions like in Elasticsearch. Or a way to give a document type more priority than another. Is there any option to do this, or is there a plan to add such functionality?

Toflar commented 2 months ago

There is no way currently and no plans to add it but contributions are welcome :) For inspiration: https://blog.meilisearch.com/filter-scoring-guide/

NeoBlack commented 2 months ago

Thank you for the fat response. I will check your code and internals, maybe I can implement such a boost feature.

Toflar commented 2 months ago

Cool, just remember: The goal of Loupe is to give you a simple alternative that's super easy to set up, install and use. It uses tools that are most likely already there. If a feature requires e.g. an sqlite plugin or makes the logic a lot more complex, it is out of scope. People might as well just install meilisearch then and benefit from a whole bunch of other features on top.

Do you plan on integrating it into TYPO3 or what's your use case?

NeoBlack commented 2 months ago

Cool, just remember: The goal of Loupe is to give you a simple alternative that's super easy to set up, install and use. It uses tools that are most likely already there. If a feature requires e.g. an sqlite plugin or makes the logic a lot more complex, it is out of scope. People might as well just install meilisearch then and benefit from a whole bunch of other features on top.

Get your point, maybe then too much for this project.

Do you plan on integrating it into TYPO3 or what's your use case?

I have no plans from my side at the moment. It could maybe be an option to use it for our indexed_search extension, but currently, I am playing around with it and using it for one of my private projects.