How to index non-text fields and fields in associated elements?

27 views
Skip to first unread message

omni...@gmail.com

unread,
Sep 10, 2016, 2:54:52 PM9/10/16
to django-watson discussion group
How do I index ForeignKey fields like a User. I know the User is not indexable, but how can I index variables of the user such as their name? Is there a way to pass in model methods to the 'include' field of register(), like there is when passing into the 'store' field?

Dave Hall

unread,
Sep 12, 2016, 6:39:39 AM9/12/16
to django-watson discussion group
By default, django-watson will register all CharField and TextField subclasses on the model. So the textual fields on the User should be indexed automatically when you call register()

On Sat, 10 Sep 2016 at 19:54 <omni...@gmail.com> wrote:
How do I index ForeignKey fields like a User. I know the User is not indexable, but how can I index variables of the user such as their name? Is there a way to pass in model methods to the 'include' field of register(), like there is when passing into the 'store' field?

--
You received this message because you are subscribed to the Google Groups "django-watson discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-watso...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-watson.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages