Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fields & hitlist #56

Closed
fishgrind opened this issue Dec 7, 2016 · 2 comments
Closed

fields & hitlist #56

fishgrind opened this issue Dec 7, 2016 · 2 comments

Comments

@fishgrind
Copy link

Hey,

What are the fields table and hitlist table for in the database, they remain empty.

Also is there a way to save a title in the database so the search results have a title.

And third and last, my info table is filled with 'TeamTNT\TNTSearch\Stemmer\PorterStemmer' what is this for?

@nticaric
Copy link
Contributor

nticaric commented Dec 7, 2016

In the current version TNTSearch is field agnostic, which means we don't distinguish a title from a body in a document. The plan is to add field weighting in upcoming versions, therefore some of the tables and code to support this is already included in the package.

TNTSearch returns the id of the document that contains your query, so after you fetch the searched document you can also include the title if the document has it.

The info table holds the stemmer which is used for stemming the words when you do a query.
If you're language was for example german, than the stemmer instead of PorterStemmer would be GermanStemmer

@fishgrind
Copy link
Author

@nticaric Thanks for the explanation!

I have played around with it, really cool and simple. I love it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants