Metadata-Version: 1.1
Name: haystack_queryparser
Version: 0.1
Summary: A search query parser that works in conjunction with haystack
Home-page: https://github.com/recruiterbox/haystack-queryparser
Author: Vignesh Sarma K
Author-email: vignesh@recruiterbox.com
License: UNKNOWN
Description: 
        haystack-queryparser
        ====================
        
        Converts arbitrarily complicated user entered query strings to a haystack query object.
        
        ###Usage
          ```python
          from haystack_queryparser import ParseSQ
          ```
          Also provides or_parser and and_parser which can be directly used with a query
          ```python
          parser = ParseSQ() 
          sq_object = parser.parse(query)
          ```
          takes a `AND` or `OR` operator to use as default optionally.
        
        ###Input
          Input should be a string.This the query.
          
        ###Output
          Output is a `SQ(haystack.query.SQ)` object.
          This can be passed to `SearchQuerySet.filter` and the	query will be applied
        
        ###Test
          To run the test you need to be in the django environment.So you can do something like this:
        ```
        $ python manage.py shell
        >>> import haystack_queryparser.tests as test
        >>> tests.main()
        test_operators (modules.haystack_queryparser2.tests.SimpleTest) ... ok
        test_parse (modules.haystack_queryparser2.tests.SimpleTest) ... ok
        test_parse_with_new_default (modules.haystack_queryparser2.tests.SimpleTest) ... ok
        
        ----------------------------------------------------------------------
        Ran 3 tests in 0.004s
        
        OK
        ```
        
Keywords: parsing,query,search
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
