etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.2k stars 130 forks source link

CharField nested in ArrayField not being searched #178

Open flux627 opened 7 years ago

flux627 commented 7 years ago

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 commented 7 years ago

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 notifications@github.com 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 https://github.com/etianen/django-watson/issues/178, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCE6sMaFk3TAIwkaAOKvayrrJ2u3Dks5qvdJxgaJpZM4KLp8U .