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
Add several features #12
base: master
Are you sure you want to change the base?
Conversation
Nowadays sphinxql can connect to hosts specified in connection_params in the configuration. We can connect to remote sphinx servers. With this the necessity for generating sphinx.conf during startup is void. Therefore this functionality is refactored out and a command to do this is added (generate_shpinx_conf). Also the directories required to place the file are created as well.
The following tasks were done: 1. Allow the connection to external search daemon to be configured. 2. Run the sphinx on background for unit tests. 3. Do not start sphinx by default - connect to the given instance. 4. Refactor SpinxQuerySet. + Do not allow querying with sphinx and django ordering, raise NotImplementedError. 5. Reflect the changes in tests.
The improvement lies in better output processing - directly to stdout if required.
The two mentioned settings are no longer available.
Connection configuration
SphinxQlTestCase is added with the setUp and tearDown methods so that we can start/stop/index sphinx instance on demand.
Hey. Thanks a lot for this, @babky-atteq. I have not checked specifically what you did, but the tests are not passing. Let me know when you are done so I can review it and merge accordingly. |
Hello, I'll fix them in a couple of days. They were passing on my computer, and I was not clever enough to check them on Travis. But I'll make them working. |
Describe how unit test settings can be adapted to a local environment.
Describe sphinx_bin_path usage.
The library was not working with Python 3.4, the compatibility was added. Also the unit tests now work on slower computers - a limit of 2 seconds was added to wait until the searchd starts. This can be further improved to detect a real start of searchd.
2 similar comments
3 similar comments
Hello @jorgecarleitao, I've made the tests passing on Travis. You can now check the request and merge if you like. Notice that I slightly changed the behavior in the way how the sorting is defined. When both sorting in Sphinx and in Django is used an exception is raised so that there's no default behavior or ignoring of one way of sorting. There should be no other interface/contract break. The coverage drop is because of the added commands to generate sphinx configuration. |
Correct command names
Update README.md
6 similar comments
We also added a possibility to define the table/index name via
|
I have not forgotten this. It is very solid work. I would like to review it before pushing to the master, and will probably make the history linear. Regardless, great work @babky-atteq |
What about this feature? Can you merge it? |
^^ @jorgecarleitao: we would also be happy to use a pypi package instead of github repo reference 👍 If required, we could make some improvements. |
The added features mainly include: