Hi.

A recent while, there has been a small discussion about searching, that you can read in the mail archive, for example here : http://article.gmane.org/gmane.comp.cms.magnolia.user/6294 (whole thread in reverse order, email quote style). The discussion is more about building queries for attributes, but not only.

The post I wrote contains some basics about searching. The main point is that no base tool built in Magnolia can query simultaneously different repositories (mainly Website, and the Document repo, called DMS). So you have to build your own, see my post in the archives about that, but more importantly, I'd suggest you take a look at the SimpleSearchTag in Magnolia source code, because, that's an extensive example to tweak and learn. For example, it's very easy to tweak it to search in the DMS (mainly change ContentRepository.WEBSITE to ContentRepository.DMS if I recall correctly).

Once you get the basics (building queries, targeting a repository for search), you can go further on the subject : - Parsing user entries for boolean keywords (AND, OR, etc...). The SimpleSearchTag has support for this kind of things. - Minding Access Control List to query only in pathes where the user has read access (this is optionnal, in a simple site, a typical user has access to the whole site, so no problem).
- Etc, I guess.

Hope this helps.
Guillaume.

Le 11 avr. 07 à 09:47, Ville Valtonen a écrit :

Hi all!
I'm trying to implement a search which searches in both the website repository and the dms rep (i want to search website content and pdf content simultaneously). Has anybody done this yet? I couldn't find the case in the archives either.

Any help is greatly appreciated!

Ville
--
[EMAIL PROTECTED] / Reaktor-I / Mannerheimintie 2

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to