Jean-Marc Orliaguet wrote: > Julien Anguenot wrote: >> Jean-Marc Orliaguet wrote: >> >>> Julien Anguenot wrote: >>> >>>> Jean-Marc Orliaguet wrote: >>>> >> >> [...] >> >> >>>> Has your PyLucene 2.x branch finally been merged on trunk for >>>> NXLucene ? >>>> >> >> [...] >> >> >>> not yet been merged as I see, by the way the thread patch can be >>> removed. pylucene2 has it already (I'm going to check in the change). >>> >> >> for the patch, I backported it from the 2.x branch at that time when >> they introduced it. So yes useless right now. >> >> J. >> >> > > OK, I've just removed it. BTW there is one test that fails, it says:
ok.
> class LuceneServerTestCase(unittest.TestCase):
> def test_reindexing(self):
> ....
> # Reindexing just one field cleares unstored fields. This is a known
> # problem with Lucene, for which we have no solution at the moment.
> # So the following test which demonstrates this) is currently
> # commented out.
> ## Search o2 on fulltext (no return fields)
> res = self._server.searchQuery(return_fields=(),
> search_fields=({'id' : u'fulltext',
> 'value':
> u'object2'},))
>
> res = PythonResultSet(ResultSet(res)).getResults()[0]
> self.assertEqual(res, ({u'uid': u'2'},),)
>
> should it be commented out as it says in the comment?
Yes, this is a Lucene limitation related to document updates and
unstored fields. AFAIK, there is no workaround yet for this...
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
