Hi Ram,

Ram Peters wrote:
> It uses twisted for xmlrpc.  Default threading method is async.  I am
> just wondering, how come you guys didn't use twisted event loop?

It was only for write operations. Search operations are always sync.

The current trunk should be sync by default for write operation as well.
Ben changed this couple of weeks ago.

For the twisted event loop IIRC I quickly tried once last year using
deferred but it was actually slower than my own Python thread pool
implementation.

See :

 http://svn.nuxeo.org/trac/pub/browser/NXLucene/branches/twisteddeferred

Though, this branch is outdated nowadays.

Another point is that you need to take into consideration, while using
PyLucene, that you need a specific Thread class for gcj (i.e :
PyLucene.Thread).

I choose to implement my own PyLucene.Thread pool for write operation :

See :

http://svn.nuxeo.org/trac/pub/browser/NXLucene/trunk/src/nxlucene/server/threadpool.py

If you want to try out a new branch against the trunk feel free to ask
for a svn account. I'll be happy to provide you an access

> Also, where (what file and format) do I config the thread pool size,
> index store (FSDirectory) and such?

conf/nxlucene.conf

> My understanding is Indexer works on a single object at a time.  There
> is no batch indexing.  To do batch, you set RAMDirectory and flush the
> buffer.  This is fine with my current requirement.

you are right. It would be much faster this way. Just didn't have time
to implement it this way.

> how do you assign different weights to title, description (I know this
> is during the indexing)?

We don't explicitly right now... Same here lack of time...

If you got more questions feel free to ask.

Cheers,

        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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to