Skip to content

Add the ability to add custom field type for solr backend #1685

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ru4
Copy link

@ru4 ru4 commented Sep 26, 2019

Add the ability to change the default field type "text_en" for solr to user defined value using attr "field_type", to support different field types of solr that have different analyzers.

name = indexes.CharField(model_attr='name', field_type="text_ar", null=True)

now name will have the solr field type of "text_ar" and Arabic analyzer will be applied on it.

ru4 added 4 commits September 26, 2019 21:42
add the ability to change the default field type "text_en" for solr to user defined value using attr "field_type",
ex:
name = indexes.CharField(model_attr='name', field_type="text_ar", null=True)
add the ability to change the default field type "text_en" for solr to user defined value using attr "field_type",
ex:
name = indexes.CharField(model_attr='name', field_type="text_ar", null=True)
add the ability to change the default field type "text_en" for solr to user defined value using attr "field_type",
ex:
name = indexes.CharField(model_attr='name', field_type="text_ar", null=True)
if you have suggestions field in your indexer "more_like_this() "  will try to query based on it for more results
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

Successfully merging this pull request may close these issues.

1 participant