Created in: 2006-01-04 17:34:06
Author: Unknown
Size: 3578 bytes
Last updated: 2006-01-04 17:34:06
There isn't related documents
Once that you have a considerable quantity of documents within your repository, one of the most useful taks will be the possibility to perform search over that documents. jLibrary allows serching within document contents and custom defined keywords. To do a search, you must go to Search option in jLibrary main menu. You must ensure to have at least one opened repository, otherwise you'll get an error message. Once you have selected search option, the search dialog will be shown:
As you can see, the serach dialog is very simple. You only have to enter the term or phrase that you want to serach, select if you want to search that item over the document content or keywords, and finally choose the repository in which you want to perform the search. Finally, you have to press the Search button to start the search process.
Once the search is performed, search results are shown in the Search View:
In this view, you can see the different results found, just with some data about that results, as for example the name, the results repository, their location under that repository, and a score of the result. The better results will have more starts than the worst ones.
Moreover, if you perform several searches, you can query previous search results using the toolbar button at the serach view, as it's shown in the previous screenshot. If you're sure that you won't need previous searches, or if the annoy you, you can use the different toolbar buttons to remove one or all the previous searches performed.
Finally, if you want to see some result, you only must to double click over the document, resource or note found, and it will be opened into the editor.
Congratulations ! You have performed your first search :-)
Advanced: Configuring content extraction
jLibrary allows to extract text from known file types and index that text for posterior search operations. This text extraction can be configured from conf/repository.xml (or if you have already created a repository from the repositories-home/workspaces/your-repository-name/workspace.xml file). If you open that file you'll see a SearchIndex section under the <workspace> tag. In that section you can configure the different text extractor plug-ins. This show an example with all the text extractor filters activated:
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
<param name="textFilterClasses" value="org.apache.jackrabbit.core.query.MsExcelTextFilter, org.apache.jackrabbit.core.query.MsPowerPointTextFilter, org.apache.jackrabbit.core.query.MsWordTextFilter, org.apache.jackrabbit.core.query.PdfTextFilter, org.apache.jackrabbit.core.query.HTMLTextFilter, org.apache.jackrabbit.core.query.XMLTextFilter, org.apache.jackrabbit.core.query.RTFTextFilter" />
</SearchIndex>
Note that by default all the text filters are activated!