Search Engine

Thomas Guettler pan-newsreader at thomas-guettler.de
Mon Nov 11 13:55:25 EST 2002


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?

 thomas

-- 
Thomas Guettler <guettli at thomas-guettler.de>
http://www.thomas-guettler.de



More information about the Python-list mailing list