From 755463eed74ed7de9a3c1a12495d2dad655d31d5 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Tue, 13 Aug 2013 14:42:32 +0800 Subject: added 'isuifang_solr' --- isuifang_solr/example-DIH/README.txt | 47 ++ isuifang_solr/example-DIH/hsqldb/ex.backup | Bin 0 -> 11354 bytes isuifang_solr/example-DIH/hsqldb/ex.data | Bin 0 -> 1048576 bytes isuifang_solr/example-DIH/hsqldb/ex.log | 16 + isuifang_solr/example-DIH/hsqldb/ex.properties | 17 + isuifang_solr/example-DIH/hsqldb/ex.script | 12 + .../example-DIH/solr/db/conf/admin-extra.html | 31 + .../example-DIH/solr/db/conf/db-data-config.xml | 31 + isuifang_solr/example-DIH/solr/db/conf/elevate.xml | 36 + .../example-DIH/solr/db/conf/protwords.txt | 21 + isuifang_solr/example-DIH/solr/db/conf/schema.xml | 359 ++++++++++ .../example-DIH/solr/db/conf/scripts.conf | 24 + .../example-DIH/solr/db/conf/solrconfig.xml | 690 ++++++++++++++++++ .../example-DIH/solr/db/conf/stopwords.txt | 58 ++ .../example-DIH/solr/db/conf/synonyms.txt | 31 + .../example-DIH/solr/db/conf/xslt/example.xsl | 132 ++++ .../example-DIH/solr/db/conf/xslt/example_atom.xsl | 63 ++ .../example-DIH/solr/db/conf/xslt/example_rss.xsl | 62 ++ .../example-DIH/solr/db/conf/xslt/luke.xsl | 345 +++++++++ .../example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar | Bin 0 -> 706710 bytes .../solr/db/lib/hsqldb-LICENSE-BSD_LIKE.txt | 31 + .../example-DIH/solr/db/lib/hsqldb-NOTICE.txt | 68 ++ .../example-DIH/solr/mail/conf/data-config.xml | 11 + .../example-DIH/solr/mail/conf/protwords.txt | 21 + .../example-DIH/solr/mail/conf/schema.xml | 373 ++++++++++ .../example-DIH/solr/mail/conf/solrconfig.xml | 792 +++++++++++++++++++++ .../example-DIH/solr/mail/conf/stopwords.txt | 58 ++ .../example-DIH/solr/mail/conf/synonyms.txt | 31 + .../example-DIH/solr/rss/conf/admin-extra.html | 31 + .../example-DIH/solr/rss/conf/elevate.xml | 36 + .../example-DIH/solr/rss/conf/protwords.txt | 21 + .../example-DIH/solr/rss/conf/rss-data-config.xml | 26 + isuifang_solr/example-DIH/solr/rss/conf/schema.xml | 323 +++++++++ .../example-DIH/solr/rss/conf/scripts.conf | 24 + .../example-DIH/solr/rss/conf/solrconfig.xml | 689 ++++++++++++++++++ .../example-DIH/solr/rss/conf/stopwords.txt | 58 ++ .../example-DIH/solr/rss/conf/synonyms.txt | 31 + isuifang_solr/example-DIH/solr/solr.xml | 10 + .../example-DIH/solr/solr/conf/admin-extra.html | 31 + .../example-DIH/solr/solr/conf/elevate.xml | 36 + .../example-DIH/solr/solr/conf/protwords.txt | 21 + .../example-DIH/solr/solr/conf/schema.xml | 359 ++++++++++ .../example-DIH/solr/solr/conf/scripts.conf | 24 + .../solr/solr/conf/solr-data-config.xml | 22 + .../example-DIH/solr/solr/conf/solrconfig.xml | 689 ++++++++++++++++++ .../example-DIH/solr/solr/conf/stopwords.txt | 58 ++ .../example-DIH/solr/solr/conf/synonyms.txt | 31 + .../example-DIH/solr/tika/conf/schema.xml | 205 ++++++ .../example-DIH/solr/tika/conf/solrconfig.xml | 397 +++++++++++ .../solr/tika/conf/tika-data-config.xml | 11 + 50 files changed, 6493 insertions(+) create mode 100644 isuifang_solr/example-DIH/README.txt create mode 100644 isuifang_solr/example-DIH/hsqldb/ex.backup create mode 100644 isuifang_solr/example-DIH/hsqldb/ex.data create mode 100644 isuifang_solr/example-DIH/hsqldb/ex.log create mode 100644 isuifang_solr/example-DIH/hsqldb/ex.properties create mode 100644 isuifang_solr/example-DIH/hsqldb/ex.script create mode 100644 isuifang_solr/example-DIH/solr/db/conf/admin-extra.html create mode 100644 isuifang_solr/example-DIH/solr/db/conf/db-data-config.xml create mode 100644 isuifang_solr/example-DIH/solr/db/conf/elevate.xml create mode 100644 isuifang_solr/example-DIH/solr/db/conf/protwords.txt create mode 100644 isuifang_solr/example-DIH/solr/db/conf/schema.xml create mode 100644 isuifang_solr/example-DIH/solr/db/conf/scripts.conf create mode 100644 isuifang_solr/example-DIH/solr/db/conf/solrconfig.xml create mode 100644 isuifang_solr/example-DIH/solr/db/conf/stopwords.txt create mode 100644 isuifang_solr/example-DIH/solr/db/conf/synonyms.txt create mode 100644 isuifang_solr/example-DIH/solr/db/conf/xslt/example.xsl create mode 100644 isuifang_solr/example-DIH/solr/db/conf/xslt/example_atom.xsl create mode 100644 isuifang_solr/example-DIH/solr/db/conf/xslt/example_rss.xsl create mode 100644 isuifang_solr/example-DIH/solr/db/conf/xslt/luke.xsl create mode 100644 isuifang_solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar create mode 100644 isuifang_solr/example-DIH/solr/db/lib/hsqldb-LICENSE-BSD_LIKE.txt create mode 100644 isuifang_solr/example-DIH/solr/db/lib/hsqldb-NOTICE.txt create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/data-config.xml create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/protwords.txt create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/schema.xml create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/solrconfig.xml create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/stopwords.txt create mode 100644 isuifang_solr/example-DIH/solr/mail/conf/synonyms.txt create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/admin-extra.html create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/elevate.xml create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/protwords.txt create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/rss-data-config.xml create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/schema.xml create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/scripts.conf create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/solrconfig.xml create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/stopwords.txt create mode 100644 isuifang_solr/example-DIH/solr/rss/conf/synonyms.txt create mode 100644 isuifang_solr/example-DIH/solr/solr.xml create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/admin-extra.html create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/elevate.xml create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/protwords.txt create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/schema.xml create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/scripts.conf create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/solr-data-config.xml create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/solrconfig.xml create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/stopwords.txt create mode 100644 isuifang_solr/example-DIH/solr/solr/conf/synonyms.txt create mode 100644 isuifang_solr/example-DIH/solr/tika/conf/schema.xml create mode 100644 isuifang_solr/example-DIH/solr/tika/conf/solrconfig.xml create mode 100644 isuifang_solr/example-DIH/solr/tika/conf/tika-data-config.xml (limited to 'isuifang_solr/example-DIH') diff --git a/isuifang_solr/example-DIH/README.txt b/isuifang_solr/example-DIH/README.txt new file mode 100644 index 0000000..9c2f3c3 --- /dev/null +++ b/isuifang_solr/example-DIH/README.txt @@ -0,0 +1,47 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +Solr DataImportHandler example configuration +-------------------------------------------- + +Change to the parent (example) directory. Start solr by executing the following command + +> cd .. +> java -Dsolr.solr.home="./example-DIH/solr/" -jar start.jar + +in this directory, and when Solr is started connect to + + http://localhost:8983/solr/ + +To import data from the hsqldb database, connect to + + http://localhost:8983/solr/db/dataimport?command=full-import + +To import data from the slashdot feed, connect to + + http://localhost:8983/solr/rss/dataimport?command=full-import + +To import data from your imap server + +1. Edit the example-DIH/solr/mail/conf/data-config.xml and add details about username, password, imap server +2. Connect to http://localhost:8983/solr/mail/dataimport?command=full-import + +To copy data from db Solr core, connect to + + http://localhost:8983/solr/solr/dataimport?command=full-import + +See also README.txt in the solr subdirectory, and check +http://wiki.apache.org/solr/DataImportHandler for detailed +usage guide and tutorial. diff --git a/isuifang_solr/example-DIH/hsqldb/ex.backup b/isuifang_solr/example-DIH/hsqldb/ex.backup new file mode 100644 index 0000000..7471d1f Binary files /dev/null and b/isuifang_solr/example-DIH/hsqldb/ex.backup differ diff --git a/isuifang_solr/example-DIH/hsqldb/ex.data b/isuifang_solr/example-DIH/hsqldb/ex.data new file mode 100644 index 0000000..dac9b13 Binary files /dev/null and b/isuifang_solr/example-DIH/hsqldb/ex.data differ diff --git a/isuifang_solr/example-DIH/hsqldb/ex.log b/isuifang_solr/example-DIH/hsqldb/ex.log new file mode 100644 index 0000000..8320f00 --- /dev/null +++ b/isuifang_solr/example-DIH/hsqldb/ex.log @@ -0,0 +1,16 @@ +/*C2*/SET SCHEMA PUBLIC +CONNECT USER SA +SET AUTOCOMMIT FALSE +/*C3*/SET SCHEMA PUBLIC +CONNECT USER SA +SET AUTOCOMMIT FALSE +/*C4*/SET SCHEMA PUBLIC +CONNECT USER SA +SET AUTOCOMMIT FALSE +/*C5*/SET SCHEMA PUBLIC +CONNECT USER SA +SET AUTOCOMMIT FALSE +/*C3*/DISCONNECT +/*C5*/DISCONNECT +/*C4*/DISCONNECT +/*C2*/DISCONNECT diff --git a/isuifang_solr/example-DIH/hsqldb/ex.properties b/isuifang_solr/example-DIH/hsqldb/ex.properties new file mode 100644 index 0000000..6177a75 --- /dev/null +++ b/isuifang_solr/example-DIH/hsqldb/ex.properties @@ -0,0 +1,17 @@ +#HSQL Database Engine 1.8.0.10 +#Mon Dec 13 17:24:59 PST 2010 +hsqldb.script_format=0 +runtime.gc_interval=0 +sql.enforce_strict_size=false +hsqldb.cache_size_scale=8 +readonly=false +hsqldb.nio_data_file=true +hsqldb.cache_scale=14 +version=1.8.0 +hsqldb.default_table_type=memory +hsqldb.cache_file_scale=1 +hsqldb.log_size=200 +modified=yes +hsqldb.cache_version=1.7.0 +hsqldb.original_version=1.8.0 +hsqldb.compatible_version=1.8.0 diff --git a/isuifang_solr/example-DIH/hsqldb/ex.script b/isuifang_solr/example-DIH/hsqldb/ex.script new file mode 100644 index 0000000..6b151f4 --- /dev/null +++ b/isuifang_solr/example-DIH/hsqldb/ex.script @@ -0,0 +1,12 @@ +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +CREATE CACHED TABLE ITEM(ID CHAR(8),NAME VARCHAR(100),MANU VARCHAR(50),WEIGHT REAL,PRICE REAL,POPULARITY INTEGER,INCLUDES VARCHAR(200),LAST_MODIFIED TIMESTAMP DEFAULT NOW) +CREATE CACHED TABLE FEATURE(ITEM_ID CHAR(8),DESCRIPTION VARCHAR(200),LAST_MODIFIED TIMESTAMP DEFAULT NOW) +CREATE CACHED TABLE CATEGORY(ID INTEGER,DESCRIPTION VARCHAR(30),LAST_MODIFIED TIMESTAMP DEFAULT NOW) +CREATE CACHED TABLE ITEM_CATEGORY(ITEM_ID CHAR(8),CATEGORY_ID INTEGER,LAST_MODIFIED TIMESTAMP DEFAULT NOW) +SET TABLE ITEM INDEX'15056 0' +SET TABLE FEATURE INDEX'22424 0' +SET TABLE CATEGORY INDEX'18856 0' +SET TABLE ITEM_CATEGORY INDEX'17328 0' +CREATE USER SA PASSWORD "" +GRANT DBA TO SA +SET WRITE_DELAY 20 diff --git a/isuifang_solr/example-DIH/solr/db/conf/admin-extra.html b/isuifang_solr/example-DIH/solr/db/conf/admin-extra.html new file mode 100644 index 0000000..aa739da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/admin-extra.html @@ -0,0 +1,31 @@ + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/db-data-config.xml b/isuifang_solr/example-DIH/solr/db/conf/db-data-config.xml new file mode 100644 index 0000000..9fb10ea --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/db-data-config.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/elevate.xml b/isuifang_solr/example-DIH/solr/db/conf/elevate.xml new file mode 100644 index 0000000..7630ebe --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/elevate.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/protwords.txt b/isuifang_solr/example-DIH/solr/db/conf/protwords.txt new file mode 100644 index 0000000..1dfc0ab --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/protwords.txt @@ -0,0 +1,21 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# Use a protected word file to protect against the stemmer reducing two +# unrelated words to the same base word. + +# Some non-words that normally won't be encountered, +# just to test that they won't be stemmed. +dontstems +zwhacky + diff --git a/isuifang_solr/example-DIH/solr/db/conf/schema.xml b/isuifang_solr/example-DIH/solr/db/conf/schema.xml new file mode 100644 index 0000000..4e721cc --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/schema.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + text + + + + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/scripts.conf b/isuifang_solr/example-DIH/solr/db/conf/scripts.conf new file mode 100644 index 0000000..f58b262 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/scripts.conf @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +user= +solr_hostname=localhost +solr_port=8983 +rsyncd_port=18983 +data_dir= +webapp_name=solr +master_host= +master_data_dir= +master_status_dir= diff --git a/isuifang_solr/example-DIH/solr/db/conf/solrconfig.xml b/isuifang_solr/example-DIH/solr/db/conf/solrconfig.xml new file mode 100644 index 0000000..bc868aa --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/solrconfig.xml @@ -0,0 +1,690 @@ + + + + + + LUCENE_36 + + + + + ${solr.abortOnConfigurationError:true} + + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + + + + + + + + + single + + + + + false + 32 + 10 + + + 2147483647 + 10000 + + + false + + + + + + + + + 100000 + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + solr 0 10 + rocks 0 10 + static newSearcher warming query from solrconfig.xml + + + + + + + + + + + false + + + 4 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + + + explicit + 0.01 + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 + + + ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 + + + id,name,price,score + + + 2<-1 5<-2 6<90% + + 100 + *:* + + text features name + + 0 + + name + regex + + + + + + + explicit + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 + 2<-1 5<-2 6<90% + + incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 + + + + inStock:true + + + + cat + manu_exact + price:[* TO 500] + price:[500 TO *] + + + + + + + inStock:true + + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + 2<-1 5<-2 6<90% + + + + + + + + + 1 + 0.5 + + + + + + + + spell + + + + + word + + + + + + manu,cat + 1 + + + + + + db-data-config.xml + + + + + + + + + + explicit + + + + + + + string + elevate.xml + + + + + explicit + + + elevator + + + + + + + + + + + + + + + + + + + + + + + + + + explicit + true + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + 5 + + + + + *:* + + + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/stopwords.txt b/isuifang_solr/example-DIH/solr/db/conf/stopwords.txt new file mode 100644 index 0000000..b5824da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/stopwords.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/isuifang_solr/example-DIH/solr/db/conf/synonyms.txt b/isuifang_solr/example-DIH/solr/db/conf/synonyms.txt new file mode 100644 index 0000000..b0e31cb --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/synonyms.txt @@ -0,0 +1,31 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +#some test synonym mappings unlikely to appear in real input text +aaa => aaaa +bbb => bbbb1 bbbb2 +ccc => cccc1,cccc2 +a\=>a => b\=>b +a\,a => b\,b +fooaaa,baraaa,bazaaa + +# Some synonym groups specific to this example +GB,gib,gigabyte,gigabytes +MB,mib,megabyte,megabytes +Television, Televisions, TV, TVs +#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming +#after us won't split it into two words. + +# Synonym mappings can be used for spelling correction too +pixima => pixma + diff --git a/isuifang_solr/example-DIH/solr/db/conf/xslt/example.xsl b/isuifang_solr/example-DIH/solr/db/conf/xslt/example.xsl new file mode 100644 index 0000000..6832a1d --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/xslt/example.xsl @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + <xsl:value-of select="$title"/> + + + +

+
+ This has been formatted by the sample "example.xsl" transform - + use your own XSLT to get a nicer page +
+ + + +
+ + + +
+ + + + +
+
+
+ + + + + + + + + + + + + + javascript:toggle("");? +
+ + exp + + + + + +
+ + +
+ + + + + + + +
    + +
  • +
    +
+ + +
+ + + + + + + + + + + + + + + + + + + + +
diff --git a/isuifang_solr/example-DIH/solr/db/conf/xslt/example_atom.xsl b/isuifang_solr/example-DIH/solr/db/conf/xslt/example_atom.xsl new file mode 100644 index 0000000..e717972 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/xslt/example_atom.xsl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + Example Solr Atom 1.0 Feed + + This has been formatted by the sample "example_atom.xsl" transform - + use your own XSLT to get a nicer Atom feed. + + + Apache Solr + solr-user@lucene.apache.org + + + + + + tag:localhost,2007:example + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + tag:localhost,2007: + + + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/xslt/example_rss.xsl b/isuifang_solr/example-DIH/solr/db/conf/xslt/example_rss.xsl new file mode 100644 index 0000000..57bb279 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/xslt/example_rss.xsl @@ -0,0 +1,62 @@ + + + + + + + + + + + + + Example Solr RSS 2.0 Feed + http://localhost:8983/solr + + This has been formatted by the sample "example_rss.xsl" transform - + use your own XSLT to get a nicer RSS feed. + + en-us + http://localhost:8983/solr + + + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + http://localhost:8983/solr/select?q=id: + + + + + + + http://localhost:8983/solr/select?q=id: + + + + diff --git a/isuifang_solr/example-DIH/solr/db/conf/xslt/luke.xsl b/isuifang_solr/example-DIH/solr/db/conf/xslt/luke.xsl new file mode 100644 index 0000000..2ff7738 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/conf/xslt/luke.xsl @@ -0,0 +1,345 @@ + + + + + + + + + Solr Luke Request Handler Response + + + + + + <xsl:value-of select="$title"/> + + + + + + +

+ +

+
+ +
+ +

Index statistics

+ +
+ +

Field statistics

+ + + +

Document statistics

+ + + + +
+ + + + + +
+ +
+ + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+

+ +

+ +
+ +
+
+
+ + +
+ + 5 + 5 + 800 + 600 + blue + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -25 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
  • + +
  • +
    +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + + + + + + + + + + + + + + + + + + + + namespace="svg" + implementation="#AdobeSVG" + + + diff --git a/isuifang_solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar new file mode 100644 index 0000000..e010269 Binary files /dev/null and b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar differ diff --git a/isuifang_solr/example-DIH/solr/db/lib/hsqldb-LICENSE-BSD_LIKE.txt b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-LICENSE-BSD_LIKE.txt new file mode 100644 index 0000000..953bfa0 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-LICENSE-BSD_LIKE.txt @@ -0,0 +1,31 @@ +/* Copyright (c) 2001-2005, The HSQL Development Group + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * Neither the name of the HSQL Development Group nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + diff --git a/isuifang_solr/example-DIH/solr/db/lib/hsqldb-NOTICE.txt b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-NOTICE.txt new file mode 100644 index 0000000..0929e9b --- /dev/null +++ b/isuifang_solr/example-DIH/solr/db/lib/hsqldb-NOTICE.txt @@ -0,0 +1,68 @@ +========================================================================= +== HSQLDB Notice == +========================================================================= + +For content, code, and products originally developed by Thomas Mueller and the Hypersonic SQL Group: + +Copyright (c) 1995-2000 by the Hypersonic SQL Group. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +Neither the name of the Hypersonic SQL Group nor the names of its +contributors may be used to endorse or promote products derived from this +software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE HYPERSONIC SQL GROUP, +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +This software consists of voluntary contributions made by many individuals on behalf of the +Hypersonic SQL Group. + +For work added by the HSQL Development Group (a.k.a. hsqldb_lic.txt): + +Copyright (c) 2001-2005, The HSQL Development Group +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +Neither the name of the HSQL Development Group nor the names of its +contributors may be used to endorse or promote products derived from this +software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/isuifang_solr/example-DIH/solr/mail/conf/data-config.xml b/isuifang_solr/example-DIH/solr/mail/conf/data-config.xml new file mode 100644 index 0000000..eed4c2b --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/data-config.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/isuifang_solr/example-DIH/solr/mail/conf/protwords.txt b/isuifang_solr/example-DIH/solr/mail/conf/protwords.txt new file mode 100644 index 0000000..1dfc0ab --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/protwords.txt @@ -0,0 +1,21 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# Use a protected word file to protect against the stemmer reducing two +# unrelated words to the same base word. + +# Some non-words that normally won't be encountered, +# just to test that they won't be stemmed. +dontstems +zwhacky + diff --git a/isuifang_solr/example-DIH/solr/mail/conf/schema.xml b/isuifang_solr/example-DIH/solr/mail/conf/schema.xml new file mode 100644 index 0000000..406ce3b --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/schema.xml @@ -0,0 +1,373 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + messageId + + + catchAllField + + + + + diff --git a/isuifang_solr/example-DIH/solr/mail/conf/solrconfig.xml b/isuifang_solr/example-DIH/solr/mail/conf/solrconfig.xml new file mode 100644 index 0000000..c0f35b5 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/solrconfig.xml @@ -0,0 +1,792 @@ + + + + + + LUCENE_36 + + + ${solr.abortOnConfigurationError:true} + + + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + + + + + + + + + single + + + + + false + 32 + 10 + + + 2147483647 + 10000 + + + false + + + + + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + solr 0 10 + rocks 0 10 + static newSearcher warming query from solrconfig.xml + + + + + + + fast_warm 0 10 + static firstSearcher warming query from solrconfig.xml + + + + + false + + + 2 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + + + + + + + + dismax + explicit + 0.01 + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 + + + ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 + + + id,name,price,score + + + 2<-1 5<-2 6<90% + + 100 + *:* + + text features name + + 0 + + name + regex + + + + + + + dismax + explicit + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 + 2<-1 5<-2 6<90% + + incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 + + + + inStock:true + + + + cat + manu_exact + price:[* TO 500] + price:[500 TO *] + + + + + + + + + + textSpell + + + default + spell + ./spellchecker1 + + + + jarowinkler + spell + + org.apache.lucene.search.spell.JaroWinklerDistance + ./spellchecker2 + + + + + solr.FileBasedSpellChecker + file + spellings.txt + UTF-8 + ./spellcheckerFile + + + + + + + + false + + false + + 1 + + + spellcheck + + + + + + data-config.xml + + + + + + + + true + + + tvComponent + + + + + + + + + + + + termsComp + + + + + + + + + + + + + + + + + + + + + + + + + explicit + true + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + 5 + + + + + + + + + + solr + + + + + diff --git a/isuifang_solr/example-DIH/solr/mail/conf/stopwords.txt b/isuifang_solr/example-DIH/solr/mail/conf/stopwords.txt new file mode 100644 index 0000000..b5824da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/stopwords.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/isuifang_solr/example-DIH/solr/mail/conf/synonyms.txt b/isuifang_solr/example-DIH/solr/mail/conf/synonyms.txt new file mode 100644 index 0000000..b0e31cb --- /dev/null +++ b/isuifang_solr/example-DIH/solr/mail/conf/synonyms.txt @@ -0,0 +1,31 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +#some test synonym mappings unlikely to appear in real input text +aaa => aaaa +bbb => bbbb1 bbbb2 +ccc => cccc1,cccc2 +a\=>a => b\=>b +a\,a => b\,b +fooaaa,baraaa,bazaaa + +# Some synonym groups specific to this example +GB,gib,gigabyte,gigabytes +MB,mib,megabyte,megabytes +Television, Televisions, TV, TVs +#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming +#after us won't split it into two words. + +# Synonym mappings can be used for spelling correction too +pixima => pixma + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/admin-extra.html b/isuifang_solr/example-DIH/solr/rss/conf/admin-extra.html new file mode 100644 index 0000000..aa739da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/admin-extra.html @@ -0,0 +1,31 @@ + + + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/elevate.xml b/isuifang_solr/example-DIH/solr/rss/conf/elevate.xml new file mode 100644 index 0000000..7630ebe --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/elevate.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/protwords.txt b/isuifang_solr/example-DIH/solr/rss/conf/protwords.txt new file mode 100644 index 0000000..1dfc0ab --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/protwords.txt @@ -0,0 +1,21 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# Use a protected word file to protect against the stemmer reducing two +# unrelated words to the same base word. + +# Some non-words that normally won't be encountered, +# just to test that they won't be stemmed. +dontstems +zwhacky + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/rss-data-config.xml b/isuifang_solr/example-DIH/solr/rss/conf/rss-data-config.xml new file mode 100644 index 0000000..4e4e385 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/rss-data-config.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/schema.xml b/isuifang_solr/example-DIH/solr/rss/conf/schema.xml new file mode 100644 index 0000000..d77854f --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/schema.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + link + + + all_text + + + + + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/scripts.conf b/isuifang_solr/example-DIH/solr/rss/conf/scripts.conf new file mode 100644 index 0000000..f58b262 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/scripts.conf @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +user= +solr_hostname=localhost +solr_port=8983 +rsyncd_port=18983 +data_dir= +webapp_name=solr +master_host= +master_data_dir= +master_status_dir= diff --git a/isuifang_solr/example-DIH/solr/rss/conf/solrconfig.xml b/isuifang_solr/example-DIH/solr/rss/conf/solrconfig.xml new file mode 100644 index 0000000..04aafa4 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/solrconfig.xml @@ -0,0 +1,689 @@ + + + + + + LUCENE_36 + + + + + ${solr.abortOnConfigurationError:true} + + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + + + + + + + + + single + + + + + false + 32 + 10 + + + 2147483647 + 10000 + + + false + + + + + + + + + 100000 + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + solr 0 10 + rocks 0 10 + static newSearcher warming query from solrconfig.xml + + + + + + + + + + + false + + + 4 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + + + explicit + 0.01 + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 + + + ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 + + + id,name,price,score + + + 2<-1 5<-2 6<90% + + 100 + *:* + + text features name + + 0 + + name + regex + + + + + + + explicit + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 + 2<-1 5<-2 6<90% + + incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 + + + + inStock:true + + + + cat + manu_exact + price:[* TO 500] + price:[500 TO *] + + + + + + + inStock:true + + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + 2<-1 5<-2 6<90% + + + + + + + + + 1 + 0.5 + + + + + + + + spell + + + + + word + + + + + + manu,cat + 1 + + + + + + rss-data-config.xml + + + + + + + + explicit + + + + + + + string + elevate.xml + + + + + explicit + + + elevator + + + + + + + + + + + + + + + + + + + + + + + + + + explicit + true + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + + + + + + 5 + + + + + *:* + + + + + + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/stopwords.txt b/isuifang_solr/example-DIH/solr/rss/conf/stopwords.txt new file mode 100644 index 0000000..b5824da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/stopwords.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/isuifang_solr/example-DIH/solr/rss/conf/synonyms.txt b/isuifang_solr/example-DIH/solr/rss/conf/synonyms.txt new file mode 100644 index 0000000..b0e31cb --- /dev/null +++ b/isuifang_solr/example-DIH/solr/rss/conf/synonyms.txt @@ -0,0 +1,31 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +#some test synonym mappings unlikely to appear in real input text +aaa => aaaa +bbb => bbbb1 bbbb2 +ccc => cccc1,cccc2 +a\=>a => b\=>b +a\,a => b\,b +fooaaa,baraaa,bazaaa + +# Some synonym groups specific to this example +GB,gib,gigabyte,gigabytes +MB,mib,megabyte,megabytes +Television, Televisions, TV, TVs +#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming +#after us won't split it into two words. + +# Synonym mappings can be used for spelling correction too +pixima => pixma + diff --git a/isuifang_solr/example-DIH/solr/solr.xml b/isuifang_solr/example-DIH/solr/solr.xml new file mode 100644 index 0000000..b97998a --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/admin-extra.html b/isuifang_solr/example-DIH/solr/solr/conf/admin-extra.html new file mode 100644 index 0000000..aa739da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/admin-extra.html @@ -0,0 +1,31 @@ + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/elevate.xml b/isuifang_solr/example-DIH/solr/solr/conf/elevate.xml new file mode 100644 index 0000000..7630ebe --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/elevate.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/protwords.txt b/isuifang_solr/example-DIH/solr/solr/conf/protwords.txt new file mode 100644 index 0000000..1dfc0ab --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/protwords.txt @@ -0,0 +1,21 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# Use a protected word file to protect against the stemmer reducing two +# unrelated words to the same base word. + +# Some non-words that normally won't be encountered, +# just to test that they won't be stemmed. +dontstems +zwhacky + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/schema.xml b/isuifang_solr/example-DIH/solr/solr/conf/schema.xml new file mode 100644 index 0000000..fabcec7 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/schema.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + text + + + + + + + + + + + + + + + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/scripts.conf b/isuifang_solr/example-DIH/solr/solr/conf/scripts.conf new file mode 100644 index 0000000..f58b262 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/scripts.conf @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +user= +solr_hostname=localhost +solr_port=8983 +rsyncd_port=18983 +data_dir= +webapp_name=solr +master_host= +master_data_dir= +master_status_dir= diff --git a/isuifang_solr/example-DIH/solr/solr/conf/solr-data-config.xml b/isuifang_solr/example-DIH/solr/solr/conf/solr-data-config.xml new file mode 100644 index 0000000..220b92c --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/solr-data-config.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/solrconfig.xml b/isuifang_solr/example-DIH/solr/solr/conf/solrconfig.xml new file mode 100644 index 0000000..1f4a1bc --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/solrconfig.xml @@ -0,0 +1,689 @@ + + + + + + LUCENE_36 + + + + + ${solr.abortOnConfigurationError:true} + + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + 10000 + + + + + + + + + single + + + + + false + 32 + 10 + + + 2147483647 + 10000 + + + false + + + + + + + + + 100000 + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + solr 0 10 + rocks 0 10 + static newSearcher warming query from solrconfig.xml + + + + + + + + + + + false + + + 4 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + + + explicit + 0.01 + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 + + + ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 + + + id,name,price,score + + + 2<-1 5<-2 6<90% + + 100 + *:* + + text features name + + 0 + + name + regex + + + + + + + explicit + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 + 2<-1 5<-2 6<90% + + incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 + + + + inStock:true + + + + cat + manu_exact + price:[* TO 500] + price:[500 TO *] + + + + + + + inStock:true + + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + 2<-1 5<-2 6<90% + + + + + + + + + 1 + 0.5 + + + + + + + + spell + + + + + word + + + + + + manu,cat + 1 + + + + + + solr-data-config.xml + + + + + + + + explicit + + + + + + + string + elevate.xml + + + + + explicit + + + elevator + + + + + + + + + + + + + + + + + + + + + + + + + + explicit + true + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + 5 + + + + + *:* + + + + + + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/stopwords.txt b/isuifang_solr/example-DIH/solr/solr/conf/stopwords.txt new file mode 100644 index 0000000..b5824da --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/stopwords.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/isuifang_solr/example-DIH/solr/solr/conf/synonyms.txt b/isuifang_solr/example-DIH/solr/solr/conf/synonyms.txt new file mode 100644 index 0000000..b0e31cb --- /dev/null +++ b/isuifang_solr/example-DIH/solr/solr/conf/synonyms.txt @@ -0,0 +1,31 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +#some test synonym mappings unlikely to appear in real input text +aaa => aaaa +bbb => bbbb1 bbbb2 +ccc => cccc1,cccc2 +a\=>a => b\=>b +a\,a => b\,b +fooaaa,baraaa,bazaaa + +# Some synonym groups specific to this example +GB,gib,gigabyte,gigabytes +MB,mib,megabyte,megabytes +Television, Televisions, TV, TVs +#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming +#after us won't split it into two words. + +# Synonym mappings can be used for spelling correction too +pixima => pixma + diff --git a/isuifang_solr/example-DIH/solr/tika/conf/schema.xml b/isuifang_solr/example-DIH/solr/tika/conf/schema.xml new file mode 100644 index 0000000..b1ec8be --- /dev/null +++ b/isuifang_solr/example-DIH/solr/tika/conf/schema.xml @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text + + + + + diff --git a/isuifang_solr/example-DIH/solr/tika/conf/solrconfig.xml b/isuifang_solr/example-DIH/solr/tika/conf/solrconfig.xml new file mode 100644 index 0000000..794c6fd --- /dev/null +++ b/isuifang_solr/example-DIH/solr/tika/conf/solrconfig.xml @@ -0,0 +1,397 @@ + + + + + + LUCENE_36 + + + ${solr.abortOnConfigurationError:true} + + + + + + + false + + 10 + + + + 32 + 2147483647 + 10000 + 1000 + + + + + + + + + single + + + + + false + 32 + 10 + + + 2147483647 + 10000 + + + false + + + + + + + + + 100000 + + + + + + + 1024 + + + + + + + + + + + + + true + + + + + + + + 50 + + + 200 + + + + + + + + + solr 0 10 + rocks 0 10 + static newSearcher warming query from solrconfig.xml + + + + + + + + + + + false + + + 4 + + + + + + + + + + + + + + + + + + + + + + + explicit + + + + + + + tika-data-config.xml + + + + + + + + explicit + + + + + + + + + + + + *:* + + + + + + diff --git a/isuifang_solr/example-DIH/solr/tika/conf/tika-data-config.xml b/isuifang_solr/example-DIH/solr/tika/conf/tika-data-config.xml new file mode 100644 index 0000000..86f3679 --- /dev/null +++ b/isuifang_solr/example-DIH/solr/tika/conf/tika-data-config.xml @@ -0,0 +1,11 @@ + + + + + + + + + + -- cgit v1.2.2