coady avatar coady committed c15cd61

PyLucene 3.1 deprecated.

Comments (0)

Files changed (4)

 Lupyne should run anywhere PyLucene does, though its primary testing is on the popular unix variants.
 
  * Python 2.6.6+, 2.7
- * PyLucene 3.1, 3.2, 3.3, 3.4, 3.5
+ * PyLucene 3.2, 3.3, 3.4, 3.5
  * CherryPy 3.1.2+, 3.2 (only required for server)
 
 Usage

lupyne/engine/__init__.py

 from .spatial import PointField, PolygonField
 
 assert lucene.VERSION >= '3.1'
+if lucene.VERSION < '3.2':
+    warnings.warn('Support for lucene 3.1 will be removed in the next release.', DeprecationWarning)
 ==================
  * Engine:
    
+   - PyLucene 3.1 deprecated
    - Support for all IndexWriterConfig options
 
  * Server:
         assert result['facets'] == {'name': {'sample': 1}} and result['spellcheck'] == {}
         resource = client.Resource('localhost', self.ports[-1])
         assert set(resource.get('/').values()) < set([0, 1])
-        assert resource.post('/update', ['filters', 'sorters']) == 2
+        assert resource.post('/update', {'filters': True, 'sorters': True}) == 2
         assert resource.get('/docs') == [0, 1]
         with assertRaises(httplib.HTTPException, httplib.NOT_FOUND):
             resource.get('/docs/name/sample')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.