Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:user:searching [2019/02/05 12:06] kjdon |
en:user:searching [2020/06/15 13:49] (current) kjdon [Formatting cross-collection search results] |
||
---|---|---|---|
Line 2: | Line 2: | ||
In Greenstone, you can dictate how users will be able to search each | In Greenstone, you can dictate how users will be able to search each | ||
- | collection. You can select one of three indexers to determine how documents are indexed, and | + | collection. You can select defferent indexers to determine how documents are indexed, and |
you can create indexes based on any number of metadata fields and the text of the documents. | you can create indexes based on any number of metadata fields and the text of the documents. | ||
Line 214: | Line 214: | ||
In Greenstone 3, if you use SOLR as your search indexer, you can have faceted searching. This means you can filter search results based on other metadata. The facet options need to be set up manually in the collectionConfig.xml file as GLI does not allow you to enter them manually yet. | In Greenstone 3, if you use SOLR as your search indexer, you can have faceted searching. This means you can filter search results based on other metadata. The facet options need to be set up manually in the collectionConfig.xml file as GLI does not allow you to enter them manually yet. | ||
- | Add <facet> elements into the <search> element, in a simlar fashion to the index elements: | + | Add <facet> elements into the <search> element, in a similar fashion to the index elements: |
<code> | <code> | ||
Line 291: | Line 291: | ||
</code> | </code> | ||
- | You can modify the format statement in almost the same way you do any format statement. You can use <gsf:metadata> like normal. The main difference is in how links (to documents and source files) are constructed. Currently <gsf:link> won't give the right result for a cross collection search result. You need to construct the link by hand. | + | You can modify the format statement in almost the same way you do any format statement. You can use //<gsf:metadata>// like normal. The main difference is in how links (to documents and source files) are constructed. Currently //<gsf:link>// won't give the right result for a cross collection search result. You need to construct the link by hand. |
Links to the greenstone version of the document look like: | Links to the greenstone version of the document look like: |