jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Impossible to manipulate lucene directly?
Date Mon, 19 Mar 2007 09:57:15 GMT
alartin wrote:
>    What can I do if I need some search engine like search functions rather
> than XPath or SQLs? For example, I store some information in nodes, say one
> webpage content per node and I want to find "similar pages" according to
> their cotents. This is a simple task when I use lucene directly. But what
> can I do if I use jackrabbit as underlying layer?

well, not much, because the API you are using is JCR and not lucene. but see 
also below.

>   And what can I do if I need some short description of the hit and
> highlight the query terms??

you have to create that manually.

>   It seems Lucene is only used as a search library to implement the JCR
> sepecification, doesn't  it?

that's correct.

> Is it possible to manipulate Lucene directly?


But here's what you can do: create jira issues and describe exactly what you 
would like to see as an enhancement. also try to think about how to integrate 
this into jackrabbit or the query languages without affecting JCR compliance. 
e.g. I could imagine a pseudo property or function in XPath: jr:highlight() 
which returns an xml snippet with text extracts and highlighted search terms.


View raw message