Comments (2)
Additionally, I double checked if eveything in my postgres is being indexed and the right amount. Everything looks good.
I also tried other search examples mentioned here https://django-haystack.readthedocs.io/en/master/searchqueryset_api.html#searchqueryset
All return less and by far icontains
returns the most records, yet not the accurate.
from django-haystack.
Update 1:
I tried some other analyzers
ELASTICSEARCH_INDEX_SETTINGS = {
"settings": {
"analysis": {
"filter": {
"ngram_filter": {
"type": "ngram",
"min_gram": 2,
"max_gram": 20
}
},
"analyzer": {
"custom_icontains_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["lowercase", "ngram_filter"]
}
}
}
},
"mappings": {
"properties": {
"keyword": {
"type": "text",
"analyzer": "custom_icontains_analyzer"
}
}
}
}
class RegisteredDomainElasticsearchIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True, analyzer="custom_icontains_analyzer")
keyword = indexes.CharField(model_attr='keyword')
tlds = indexes.MultiValueField()
def prepare_tlds(self, obj):
tlds = [tld.name for tld in obj.tlds.all()]
return tlds
def get_model(self):
return RegisteredDomain
It still not working properly with icontains
from django-haystack.
Related Issues (20)
- Some tests are skipped due to duplicate names
- When will haystack release for django 4.0+ version? HOT 14
- RemovedInDjango41Warning due to default_app_config.
- Forcing indexing to use different connection than Default - mutiple languages
- crash after updating to 3.2 (date_facet_fields is returning: TypeError: 'NoneType' object is not iterable) HOT 2
- Issue when filtering by a boolean field in elasticsearch7 HOT 5
- Loss of result information in Solr range facet query
- Cannot index proxy model HOT 1
- Relation to Deepset AI Haystack
- Create new release with Django v4 and v5 support HOT 17
- AWS open search compatibility (should be quick to fix) HOT 1
- Django Haystack indexing is not working for many to many field in model
- Storing indexes in the database
- AttributeError: 'list' object has no attribute 'split' using count() method for a SearchQuerySet
- django.utils.datetime_safe module is removed in Django v5.0 HOT 8
- Need Help: GitHub Actions tests are failing
- Django 5 deprecated datetime_safe --> Drop support for whoosh? HOT 2
- How to authenticate to Elastic cloud using API key?
- Name conflict with wagtail's update_index. TypeError: Unknown option(s) for update_index command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-haystack.