You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to search only within select columns of the registered model. Say you have:
@whooshee.register_model('title', 'content')
class Entry(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String)
content = db.Column(db.Text)
It would be great if I could only search content column by:
Or is it possible to do this by registering a custom woosheer? I can't quite figure out how to be able to search both 'title' and 'content', while also being able to search only 'title' or 'content' separately.
The text was updated successfully, but these errors were encountered:
So I found that I can make a custom whoosheer to only search the 'content' column as below. However this seems to create a separate index from the original registered model. This seems a little inefficient or is that how these full text searches work? Is there something I'm missing?
Is it possible to search only within select columns of the registered model. Say you have:
It would be great if I could only search
content
column by:Or is it possible to do this by registering a custom woosheer? I can't quite figure out how to be able to search both 'title' and 'content', while also being able to search only 'title' or 'content' separately.
The text was updated successfully, but these errors were encountered: