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

CharField nested in ArrayField not being searched #178

Open
flux627 opened this issue Oct 1, 2016 · 1 comment
Open

CharField nested in ArrayField not being searched #178

flux627 opened this issue Oct 1, 2016 · 1 comment

Comments

@flux627
Copy link

flux627 commented Oct 1, 2016

I have a model with this field

product_tags = ArrayField(models.CharField(max_length=255), default=list)

and it doesn't seem to be searching the nested CharField contents. Will this ever be supported?

@etianen
Copy link
Owner

etianen commented Oct 3, 2016

You can make this work now by registering your model with a custom
SearchAdapter.

https://github.com/etianen/django-watson/wiki/Registering-models#tweaking-search-weighting

Auto-registration of array fields of textual data could be supported, and
I'd take a pull request that added this feature.

On Sat, 1 Oct 2016 at 04:26 flux627 [email protected] wrote:

I have a model with this field

product_tags = ArrayField(models.CharField(max_length=255), default=list)

and it doesn't seem to be searching the nested CharField contents. Will
this ever be supported?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#178, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJFCE6sMaFk3TAIwkaAOKvayrrJ2u3Dks5qvdJxgaJpZM4KLp8U
.

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