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

Example of indexing a document with tags? #132

Open
prologic opened this issue Oct 7, 2022 · 1 comment
Open

Example of indexing a document with tags? #132

prologic opened this issue Oct 7, 2022 · 1 comment

Comments

@prologic
Copy link

prologic commented Oct 7, 2022

Can anyone give an example of indexing a document with tags? There are no values ot the tag, so I'm not exactly sure if NewKeywordField is the right type to use here.

@prologic
Copy link
Author

prologic commented Oct 8, 2022

I think this code snippet might have answered my question:

bluge/test/basic_test.go

Lines 47 to 52 in 5741419

AddField(bluge.NewKeywordField("tags", "gopher").
StoreValue().
SearchTermPositions()).
AddField(bluge.NewKeywordField("tags", "belieber").
StoreValue().
SearchTermPositions()).

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

1 participant