Skip to content

Persisting vector of strings in the database #170

Closed Answered by silvanheller
RibinMTC asked this question in Q&A
Discussion options

You must be logged in to vote

To summarize for future reference: There are two options:

  • stick what we do in the AbstractTextRetriever, which is to use AttributeType.TEXT for the specific column and then use selector.getFulltextRows(k, attributename, config, terms...) which allows you to use the full spectrum of text retrieval features provided by Lucene (which is what cottontail uses for the text retrieval). This needs a textindex, which is automatically created when you use the entitycreator. It also means you need to optimize the entity after your import / extraction has finished.
  • use LIKE operators in cottontail, which are implemented like SQL LIKEs

The solution which was best for the specific usecase was to go w…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@lucaro
Comment options

@silvanheller
Comment options

@RibinMTC
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by silvanheller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants