Search Engine
Ype Kingma
ykingma at accessforall.nl
Tue Nov 12 17:24:18 EST 2002
Thomas Guettler schreef:
> Hi!
>
> I need a search engine which can handle this
> kind of data:
>
> {"1": #Object one
> {"foo_attribute1": "my data",
> "foo_attribute2": "foo bar, bla blu",
> ...},
> "2": #Object two
> {"foo_attribute1": "bau",
> "foo_attribute2": "next one",
> ...
> }
> ...
> }
>
> The attributes can contain several MByte of
> text. The text should be searchable.
>
> There will be several thousand objects
>
> I need the following API:
>
> search_engine.addObject(myObj)
>
> search_engine.search(
> {
> "foo_attribute1": "word1",
> "foo_attribute2": "word2"
> })
>
> search_engine.deleteObject(id="1")
>
>
> Up to now I have two possible solutions:
>
> 1. Hack htdig to do the things I want to,
> and add a python interface
>
> 2. Use ZCatalog
>
> What do you think? Has some experience with
> python-based searchengines?
In case you don't mind using jython, lucene will
do this easily.
Have fun,
Ype
email at xs4all.nl
More information about the Python-list
mailing list