[opencms] [opencms-dev] filtering and sorting XMLs - posibility existing ?

Jorge González informatico at hotelparadisepark.com
Tue Jun 21 12:07:17 CEST 2005


Hi:

You can build an easy linear search algorithm, but this is very slow...

Alternatives:

1. Use file properties
    This is a little "hack". You can write content info into the file
properties and use them to search faster (the file properties are stored
directly into one DB table)

2. (My choice). You can update one search index every time you publish one
content. Example:
    You have a index table like this one

(id, linkToCms, type)

    On every content publish, you store/update the content info into this
index table

(0, /products/product1, 123)
(1, /products/product2, 111)
(2, /products/product3, 123)

    The search is now implemented like an "standard" query

3. You are Mr. Wonder Programmer, and you implement a port for OpenCms to
store the XML contents into a XML database like dbxml
(http://www.dbxml.com/product.html). Don't forget to share it with all of
us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050621/90f0da07/attachment.htm>


More information about the opencms-dev mailing list