Hi Stefan
On 4.1.2005, at 15:25, Stefan L�tzkendorf wrote:
Is the HEAD safe to use? Do you know when the first beta (or better) release will be for 2.2? Seems to me that we are starting to need 2.2 :)Hello Eirikur
1. What version of Slide and Lucene do I need to add Lucene indexing to my Slide store? There seems be some Lucene stuff in Slide 2.1...the stuff in 2.1 is rather experimental, I think. In 2.2 (on the cvs HEAD available) it will be much more complete, I hope.
2. How do I activate the indexing?For the stuff in 2.2 there is some doc under http://wiki.apache.org/jakarta-slide/DaslConfiguration
Ok I will study that.
Ok using a DASL search with different scopes will work for me I think. I don't want to divide up my store.3. Can I have seperate indexes for different URI's?You will have a single index for each store you want to be indexed.
E.g. I would like to have one index for my articles (xml based docs) under '/files/cms/articles/....' and possibly a custom indexer (search document)
And another index for all other documents (Word,excel,pdf etc.) under '/files/cms/documents/...'
Separation of different subtrees you can made via your DASL query. There you give a scope, i.e. the subtree you want to search.
If you want to have different indexes, you might want to separate the docs in different Stores.
However does one always use a DASL search to search and not Lucene directly by
creating a IndexSearcher, analyzers if needed and and a query and calling search(query)?
Like so:
...
IndexSearcher searcher = new IndexSearcher(reader.getReader(indexPath));
Analyzer analyzer = new StopAnalyzer();
BooleanQuery query = new BooleanQuery();
...
hits = searcher.search(query);
No not a ranking system but a multiple search system like OSX 10.4 "Spotlight" feature or like QuickSilver (best osx app ever ;)My goal is to have a web based search with "Spotlight" like search results categorizing.Do you mean something like scoring or ranking? This is currently not available through DASL. Thats still a TODO.
In our web platform (IdegaWeb) we have many different things we want to search at the same time and display the results categorized like so:
Pages:
...results from our Lucene based webcrawler
Articles:
...results from Slide's Lucene indexing
Documents:
...results from Slide's Lucene indexing
(possibly even such categorized by content type like:)
Pdf's
...
Word docs
...
Images
...
Contacts:
...results from our user/group/role system via sql or ldap search.
--------------Can the standard Slide indexing, index anything more than text files? Can it e.g. index pdf's or MS Office docs?
Ok so that is the standard way of doing a DASL search? It would be nice to have access to that Method in WebdavResource like almost everything else.4. How do I do a search in code if I have the query string?The WebdavResource currently does not have a search method. But you can use the SearchMethod class.
Thanks for the quick response!
-Eirikur, Idega.
DASL support is still under development as you see (:-)
Regards, Stefan
-- Stefan L�tzkendorf -- [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED] Chief Software Engineer Idega Software http://www.idega.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
