[opencms-dev] Custom collector with parametrized search
Juan Francisco Fernández Rodríguez
juanffernandez at faffe.es
Thu Mar 13 13:44:10 CET 2008
Thanks Pere, but that solution not fit well in our case, we are a large
foundation (more than 1000 employees), and our resources on OpenCms grow up
very fast, so in some weeks we will have thousands of them.
I thought to use that approach at first, but as I said, we will have tons of
resources to search in, and thats the cause of my idea to use Lucenes
search engine.
Greets!
_____
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Pere Torrodellas
Enviado el: jueves, 13 de marzo de 2008 11:52
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Custom collector with parametrized search
----- Original Message -----
From: Juan <mailto:juanffernandez at faffe.es> Francisco Fernández Rodríguez
To: 'The <mailto:opencms-dev at opencms.org> OpenCms mailing list'
Sent: Thursday, March 13, 2008 10:08 AM
Subject: [opencms-dev] Custom collector with parametrized search
Hi list,
In my OpenCms system, I have a custom xmlcontent for news that is displayed
as a list, and now I have to allow the user to filter that list by some
fields of the content (title, country, dates, category, some Boolean fields,
etc.). Im thinking to extend CmsSearchIndex to rebuild the Lucenes search
query to perform a search in the fields specified by the user. Is this the
best solution?
If the number of documents is relatively small, as was our case,you can do
it just by defining a standard index on the relevant folder(s), perform the
standard search on the system attributes (i.e. title, keywords, content,
etc) and then filtering the result looking into each document for the other
filter attributes. Not very performant, but simple and not that bad for
small sets.
Pere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080313/db5d8f7b/attachment.htm>
More information about the opencms-dev
mailing list