Thanks Christoph, so it is possible with the Lucine index, I will check the wiki,

Jorgen

Quoting Christoph Breidert <[email protected]>:

jorgen schrieb:
Hi,

is it possible to narrow the results of simplesearch to only those pages with for instance title=query? How can this be done? Any suggestions?

Jorgen Leijenaar




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

Hi Jorgen,

this cannot be done, at least not using the API of the Java Content Repository (JCR) which holds the magnolia contents. The reason is that the API simply does not have this functionality. However, in the jackrabbit implementation of the JCR (the one which ships with magnolia samples) uses the lucene index internally. What you can do is abstract the lucene index, and use the full features of this implementation. If I remember correctly, the title of a page is indexed seperatly form the content, so you should be able to access this.

I have implemented a similar thing abstracting from the lucene index, but with the aim to retrieve all possible search terms in the index. You can check it out on the wiki.

http://www.magnolia.info/wiki/Wiki.jsp?page=Autosuggest_searchterms

Cheers, Christoph.


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






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

Reply via email to