confirm / django-fulltext-search Goto Github PK
View Code? Open in Web Editor NEWDjango support for MySQL / MariaDB full-text search
License: BSD 3-Clause "New" or "Revised" License
Django support for MySQL / MariaDB full-text search
License: BSD 3-Clause "New" or "Revised" License
Hi,
How can i order -score
?
Thanks.
My Django version is 2.0.5 and python is 3.6, I got an error like this.
Traceback (most recent call last): File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner response = get_response(request) File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib64/python3.6/site-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/local/lib64/python3.6/site-packages/django/utils/decorators.py", line 62, in _wrapper return bound_func(*args, **kwargs) File "/data/opsplatform/public/views.py", line 16, in inner return func(reqeust, *args, **kwargs) File "/usr/local/lib64/python3.6/site-packages/django/utils/decorators.py", line 58, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/local/lib64/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/data/opsplatform/cmdb/views.py", line 50, in get AssetSInfo.objects.search('12312') File "/usr/local/lib/python3.6/site-packages/django_fulltext_search-0.2.0-py3.6.egg/django_fulltext_search.py", line 155, in search return self.get_query_set().search(query, **kwargs) File "/usr/local/lib/python3.6/site-packages/django_fulltext_search-0.2.0-py3.6.egg/django_fulltext_search.py", line 75, in search column = meta.get_field(field, many_to_many=False).column TypeError: get_field() got an unexpected keyword argument 'many_to_many'
My python code is this:
AssetSInfo.objects.search('12312')
You might want to add a license, just to make sure it can be used properly. You can have a look here for some help =)
Instead of old-skool distributing individual files it would be nice to wrap this in a package. This can be pretty easy using for example https://github.com/pydanny/cookiecutter-djangopackage
posts.objects.search('test',('gtitle','gdesc')).order_by('-id')
error
TypeError at /req_proc/reqdata
search() takes exactly 2 arguments (3 given)
Request Method: | GET |
---|---|
1.10.7 | |
TypeError | |
search() takes exactly 2 arguments (3 given) | |
./ndaps/views/req_proc.py in reqdata, line 59 | |
/usr/bin/uwsgi-core | |
2.7.12 | |
['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client'] | |
Tue, 10 Oct 2017 15:14:53 +0900 |
posts.objects.search('test')
error
TypeError at /req_proc/reqdata
get_field() got an unexpected keyword argument 'many_to_many'
Request Method: | GET |
---|---|
1.10.7 | |
TypeError | |
get_field() got an unexpected keyword argument 'many_to_many' | |
./ndaps/fulltext.py in search, line 73 | |
/usr/bin/uwsgi-core | |
2.7.12 | |
['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client'] | |
Tue, 10 Oct 2017 15:20:50 +0900 |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.