-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
42 lines (28 loc) · 949 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Prerequisites
=============
Install Maven 3.0.x
-------------------
From http://maven.apache.org
Building the Solr HighlightComponent
====================================
Execute
mvn install
or run it faster (without the tests)_
mvn -Pfast install
Configure Solr to use the component (solrconfig.xml)
=====================================================
To insert the component before or after the 'standard' components, use:
lib Folder to your jar-file
<lib dir="/xxx/lib/"/>
<searchComponent name="highlightQuery" class="com.memonews.solr.handler.component.HighlightQueryComponent" />
<arr name="first-components">
<str>highlightQuery</str>
</arr>
Register the query parser.
<queryParser name="memoparser" class="com.memonews.solr.search.HighlightQParserPlugin">
<!-- comma separated values eg. title,name -->
<str name="fields">title</str>
</queryParser>
Restart the server
=====================
Restart tomcat as last step.