Hi,
The website and the DMS (document zone) are different Jackrabbit
repositories and cannot be quired simulteaneously, at least, not with
the basic APIs, as far as I know.
That's why the SimpleSearchTag is configured, by default, to search
inside the Website repository 'only'.
If you want to perform a DMS search, you have to modify this
behavior, which is actually a simple thing to do, but requires that
you write or recompile your own version of the tag.
I suggest you chek out this thread from the archive
http://article.gmane.org/gmane.comp.cms.magnolia.user/6474/
Basically, it says that you can copy/paste the source code of
SimpleSearch Tag, and modify it in one single line to search through
documents instead of searching through the webiste (getQueryManager
(ContentRepository.DMS) being the thing to write).
If you want to do combined search, it's not really much more
complicated, but then, you have to deal with different kinds of
results (you might want to deal differently with results like a
document or like a web page) when you display you results.
The archive thread above also links to another thread having to do
with searching.
Hope this helps.
Guillaume.
Le 18 juin 07 à 11:39, g2293 a écrit :
Any luck with the search using Lucene API? If so, I want to know
how you managed to do this as we are also facing same situation.
Thanks,
Kalyan
Magnolia - User mailing list wrote:
I have created a website in Magnolia and I want it to search
within the
documents posted on it. I notice that Jackrabbit uses Lucene, so
should be
able to do this. The sample search template returns no results when I
search
for words within the documents. Any help would be greatly
appreciated as
I'm
a newbie.
Thanks, Bonnie
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
Quoted from:
http://www.nabble.com/Searching-Documents-in-Magnolia-
tf2016293.html#a5542643
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------