root/org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-core/src/main/resources/OSGI-INF/nxsearch-contrib.xml

Revision 28258, 6.4 kB (checked in by ddupraz, 2 years ago)

NXP-1794 backport on trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <component name="org.nuxeo.ecm.core.search.service.defaultconfig">
2   <extension
3     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
4     point="indexableDocType">
5     <indexableDocType indexAllSchemas="true" name="Domain" />
6     <indexableDocType indexAllSchemas="true" name="WorkspaceRoot" />
7     <indexableDocType indexAllSchemas="true" name="SectionRoot" />
8     <indexableDocType indexAllSchemas="true" name="TemplateRoot" />
9     <indexableDocType indexAllSchemas="true" name="Section" />
10     <indexableDocType indexAllSchemas="true" name="Workspace" />
11     <indexableDocType indexAllSchemas="true" name="File" />
12     <indexableDocType indexAllSchemas="true" name="Folder" />
13     <indexableDocType indexAllSchemas="true" name="Note" />
14     <indexableDocType indexAllSchemas="true" name="Forum" />
15     <indexableDocType indexAllSchemas="true" name="Thread" />
16     <indexableDocType indexAllSchemas="true" name="Picture" />
17   </extension>
18   <extension
19     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
20     point="resource">
21     <resource name="note" prefix="note" type="schema"
22       indexAllFields="true">
23       <field name="note" analyzer="default" stored="false"
24         indexed="true" type="Text" binary="false" />
25     </resource>
26     <resource name="dublincore" prefix="dc" indexAllFields="true"
27       type="schema">
28       <field name="title" analyzer="default" stored="true"
29         indexed="true" type="Text" binary="false" sortable="true"
30         sortOption="case-insensitive"/>
31       <field name="coverage" stored="true" indexed="true" sortable="false"
32         type="Path"/>
33       <field name="subjects" stored="true" indexed="true" sortable="false"
34         type="Path" multiple="true"/>
35     </resource>
36     <resource name="common" prefix="common" indexAllFields="true"
37       type="schema">
38       <field name="size" stored="true" indexed="true" type="int" />
39     </resource>
40     <resource name="ecm" prefix="ecm" indexAllFields="true"
41       type="documentBuiltins">
42       <field name="id" analyzer="keyword" stored="true" indexed="true"
43         sortable="false" type="keyword">
44       </field>
45       <field name="qid" analyzer="keyword" stored="true" indexed="true"
46         sortable="false" type="keyword">
47       </field>
48       <field name="uuid" analyzer="keyword" stored="true" indexed="true"
49         sortable="false" type="keyword">
50       </field>
51       <field name="name" analyzer="keyword" stored="true" indexed="true"
52         sortable="false" type="keyword">
53       </field>
54       <field name="parentId" analyzer="keyword" stored="true"
55         indexed="true" sortable="false" type="keyword">
56       </field>
57       <field name="primaryType" analyzer="keyword" stored="true"
58         indexed="true" sortable="true" type="keyword">
59       </field>
60       <field name="path" stored="true" indexed="true" sortable="false"
61         type="Path">
62       </field>
63       <field name="url" analyzer="keyword" stored="true" indexed="true"
64         sortable="false" type="keyword">
65       </field>
66       <field name="currentLifeCycleState" analyzer="keyword"
67         stored="true" indexed="true" sortable="false" type="keyword">
68       </field>
69       <field name="versionLabel" analyzer="keyword" stored="true"
70         indexed="true" sortable="false" type="keyword">
71       </field>
72       <field name="isCheckedInVersion" analyzer="boolean" stored="true"
73         indexed="true" sortable="false" type="boolean">
74       </field>
75       <field name="isProxy" analyzer="boolean" stored="true"
76         indexed="true" sortable="false" type="boolean">
77       </field>
78       <field name="repositoryName" analyzer="keyword" stored="true"
79         indexed="true" sortable="false" type="keyword">
80       </field>
81       <field name="mixinType" analyzer="default" stored="true"
82         indexed="true" type="keyword" binary="false" multiple="true" />
83     </resource>
84   </extension>
85   <extension
86     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
87     point="fullTextField">
88     <fullText name="ecm:fulltext" analyzer="default"
89       blobExtractorName="nuxeoTransform">
90       <field>dublincore:title</field>
91       <field>dublincore:description</field>
92       <field>file:content</field>
93       <field>files:files:file</field>
94       <field>note:note</field>
95       <mimetype name="application/pdf">pdf2text</mimetype>
96       <mimetype name="application/msword">word2text_poi</mimetype>
97       <mimetype name=".*/.*">any2text</mimetype>
98     </fullText>
99   </extension>
100   <extension
101     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
102     point="indexingEvent">
103     <indexingEvent name="documentCreated" action="Index" />
104     <indexingEvent name="documentModified" action="ReIndex" />
105     <indexingEvent name="documentPublished" action="ReIndex" />
106     <indexingEvent name="documentProxyPublished" action="Index" />
107     <indexingEvent name="documentCreatedByCopy" action="Index"
108       recursive="true" />
109     <indexingEvent name="documentCheckedIn" action="Index" />
110     <indexingEvent name="documentMoved" action="Index"
111       recursive="true">
112       <!-- uncomment when it has become meaningful
113         <resource>builtins</resource>
114       -->
115     </indexingEvent>
116     <indexingEvent name="documentRemoved" action="UnIndex"
117       recursive="true"/>
118     <indexingEvent name="documentSecurityUpdated" action="ReIndex"
119       recursive="true">
120       <!-- uncomment when it's meaningful <resource>security</resource> -->
121     </indexingEvent>
122     <indexingEvent name="lifecycle_transition_event" action="ReIndex" />
123   </extension>
124   <extension
125     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
126     point="blobExtractor">
127     <blobExtractor name="nuxeoTransform"
128       class="org.nuxeo.ecm.core.search.blobs.NXTransformBlobExtractor" />
129   </extension>
130   <extension
131     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
132     point="resourceType">
133     <resourceType name="schema"
134       factoryClass="org.nuxeo.ecm.core.search.api.client.indexing.resources.document.factory.DocumentIndexableResourceFactory" />
135   </extension>
136   <extension
137     target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
138     point="resourceType">
139     <resourceType name="documentBuiltins"
140       factoryClass="org.nuxeo.ecm.core.search.api.client.indexing.resources.document.factory.DocumentBuiltinsIndexableResourceFactory" />
141   </extension>
142   <extension
143                 target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
144                 point="indexingThreadPool">
145                 <indexingThreadPool maxPoolSize="5" />
146         </extension>
147 </component>
Note: See TracBrowser for help on using the browser.