Jean-Francois Leveque

Merge branch 'master' of grogv3.legrog.org:grogv3/web-application

1 +<?xml version="1.0" encoding="UTF-8" ?>
2 +<!--
3 + Licensed to the Apache Software Foundation (ASF) under one or more
4 + contributor license agreements. See the NOTICE file distributed with
5 + this work for additional information regarding copyright ownership.
6 + The ASF licenses this file to You under the Apache License, Version 2.0
7 + (the "License"); you may not use this file except in compliance with
8 + the License. You may obtain a copy of the License at
9 +
10 + http://www.apache.org/licenses/LICENSE-2.0
11 +
12 + Unless required by applicable law or agreed to in writing, software
13 + distributed under the License is distributed on an "AS IS" BASIS,
14 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 + See the License for the specific language governing permissions and
16 + limitations under the License.
17 +-->
18 +
19 +<!-- If this file is found in the config directory, it will only be
20 + loaded once at startup. If it is found in Solr's data
21 + directory, it will be re-loaded every commit.
22 +
23 + See http://wiki.apache.org/solr/QueryElevationComponent for more info
24 +
25 +-->
26 +<elevate>
27 + <!-- Query elevation examples
28 + <query text="foo bar">
29 + <doc id="1" />
30 + <doc id="2" />
31 + <doc id="3" />
32 + </query>
33 +
34 +for use with techproducts example
35 +
36 + <query text="ipod">
37 + <doc id="MA147LL/A" /> put the actual ipod at the top
38 + <doc id="IW-02" exclude="true" /> exclude this cable
39 + </query>
40 +-->
41 +
42 +</elevate>
1 +<schema name="account" version="1.5"><!-- Confirmer choix version-->
2 + <fieldType name="int" class="solr.TrieIntField"/>
3 + <fieldType name="long" class="solr.TrieLongField"/>
4 + <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
5 + <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/>
6 + <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/>
7 + <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
8 + <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
9 + <fieldType name="ICUtext" class="solr.TextField">
10 + <analyzer type="index">
11 + <charFilter class="solr.HTMLStripCharFilterFactory"/>
12 + <tokenizer class="solr.ICUTokenizerFactory"/>
13 + <filter class="solr.ICUFoldingFilterFactory"/>
14 + </analyzer>
15 + <analyzer type="query">
16 + <tokenizer class="solr.ICUTokenizerFactory"/>
17 + <filter class="solr.ICUFoldingFilterFactory"/>
18 + </analyzer>
19 + </fieldType>
20 + <fieldType name="namestr" class="solr.StrField"/>
21 +
22 + <field name="presentation" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/>
23 + <field name="userId" type="int" indexed="true" multiValued="false" required="true"/>
24 + <field name="_version_" type="long" indexed="true" multiValued="false" required="true"/>
25 + <field name="_text_" type="ICUtext" indexed="true" multiValued="true" required="true"/>
26 +
27 + <uniqueKey>userId</uniqueKey>
28 +
29 + <copyField source="presentation" dest="_text_" />
30 +</schema>
31 +
This diff is collapsed. Click to expand it.
1 +#!/bin/sh
2 +~solr/solr/bin/solr create -c publishers -d publishers
3 +~solr/solr/bin/solr create -c accounts -d accounts
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +~solr/solr/bin/solr delete -c publishers
3 +~solr/solr/bin/solr delete -c accounts
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8" ?>
2 +<!--
3 + Licensed to the Apache Software Foundation (ASF) under one or more
4 + contributor license agreements. See the NOTICE file distributed with
5 + this work for additional information regarding copyright ownership.
6 + The ASF licenses this file to You under the Apache License, Version 2.0
7 + (the "License"); you may not use this file except in compliance with
8 + the License. You may obtain a copy of the License at
9 +
10 + http://www.apache.org/licenses/LICENSE-2.0
11 +
12 + Unless required by applicable law or agreed to in writing, software
13 + distributed under the License is distributed on an "AS IS" BASIS,
14 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 + See the License for the specific language governing permissions and
16 + limitations under the License.
17 +-->
18 +
19 +<!-- If this file is found in the config directory, it will only be
20 + loaded once at startup. If it is found in Solr's data
21 + directory, it will be re-loaded every commit.
22 +
23 + See http://wiki.apache.org/solr/QueryElevationComponent for more info
24 +
25 +-->
26 +<elevate>
27 + <!-- Query elevation examples
28 + <query text="foo bar">
29 + <doc id="1" />
30 + <doc id="2" />
31 + <doc id="3" />
32 + </query>
33 +
34 +for use with techproducts example
35 +
36 + <query text="ipod">
37 + <doc id="MA147LL/A" /> put the actual ipod at the top
38 + <doc id="IW-02" exclude="true" /> exclude this cable
39 + </query>
40 +-->
41 +
42 +</elevate>
1 +<schema name="publisher" version="1.5"><!-- Confirmer choix version-->
2 + <fieldType name="int" class="solr.TrieIntField"/>
3 + <fieldType name="long" class="solr.TrieLongField"/>
4 + <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
5 + <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/>
6 + <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/>
7 + <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
8 + <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
9 + <fieldType name="ICUtext" class="solr.TextField">
10 + <analyzer type="index">
11 + <charFilter class="solr.HTMLStripCharFilterFactory"/>
12 + <tokenizer class="solr.ICUTokenizerFactory"/>
13 + <filter class="solr.ICUFoldingFilterFactory"/>
14 + </analyzer>
15 + <analyzer type="query">
16 + <tokenizer class="solr.ICUTokenizerFactory"/>
17 + <filter class="solr.ICUFoldingFilterFactory"/>
18 + </analyzer>
19 + </fieldType>
20 + <fieldType name="namestr" class="solr.StrField"/>
21 +<!-- Collation Unicode difficile à faire fonctionner
22 + <fieldType name="textICUC" class="solr.ICUCollationField" locale="fr"/>
23 +-->
24 +<!-- CollationField ne supporte pas un analyzer
25 +-->
26 + <fieldType name="textColl" class="solr.CollationField" language="fr"/>
27 +<!--
28 +-->
29 +
30 + <field name="publisherName" type="ICUtext" indexed="true" stored="true" multiValued="false" required="true"/>
31 + <field name="publisherCountry" type="namestr" indexed="true" stored="true" multiValued="false" required="false"/>
32 + <field name="publisherHistory" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/>
33 + <field name="publisherId" type="int" indexed="true" multiValued="false" required="true"/>
34 + <field name="_version_" type="long" indexed="true" multiValued="false" required="true"/>
35 + <field name="_text_" type="ICUtext" indexed="true" multiValued="true" required="true"/>
36 +
37 + <uniqueKey>publisherId</uniqueKey>
38 +
39 + <copyField source="publisherName" dest="_text_" />
40 + <copyField source="publisherHistory" dest="_text_" />
41 +</schema>
42 +
This diff is collapsed. Click to expand it.