-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
12,851 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.DS_store | ||
output.log | ||
solr | ||
target | ||
*.iml | ||
.classpath | ||
|
31 changes: 31 additions & 0 deletions
31
apache-solr/example/example-DIH/solr/db/conf/admin-extra.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
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. | ||
--> | ||
|
||
<!-- The content of this page will be statically included into the top | ||
of the admin page. Uncomment this as an example to see there the content | ||
will show up. | ||
<hr> | ||
<i>This line will appear before the first table</i> | ||
<tr> | ||
<td colspan="2"> | ||
This row will be appended to the end of the first table | ||
</td> | ||
</tr> | ||
<hr> | ||
--> |
31 changes: 31 additions & 0 deletions
31
apache-solr/example/example-DIH/solr/db/conf/db-data-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<dataConfig> | ||
<dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" /> | ||
<document> | ||
<entity name="item" query="select * from item" | ||
deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'"> | ||
<field column="NAME" name="name" /> | ||
<field column="NAME" name="nameSort" /> | ||
<field column="NAME" name="alphaNameSort" /> | ||
|
||
<entity name="feature" | ||
query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'" | ||
deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'" | ||
parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}"> | ||
<field name="features" column="DESCRIPTION" /> | ||
</entity> | ||
|
||
<entity name="item_category" | ||
query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'" | ||
deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'" | ||
parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}"> | ||
<entity name="category" | ||
query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'" | ||
deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'" | ||
parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}"> | ||
<field column="description" name="cat" /> | ||
</entity> | ||
</entity> | ||
</entity> | ||
</document> | ||
</dataConfig> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
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. | ||
--> | ||
|
||
<!-- If this file is found in the config directory, it will only be | ||
loaded once at startup. If it is found in Solr's data | ||
directory, it will be re-loaded every commit. | ||
--> | ||
|
||
<elevate> | ||
<query text="foo bar"> | ||
<doc id="1" /> | ||
<doc id="2" /> | ||
<doc id="3" /> | ||
</query> | ||
|
||
<query text="ipod"> | ||
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top --> | ||
<doc id="IW-02" exclude="true" /> <!-- exclude this cable --> | ||
</query> | ||
|
||
</elevate> |
21 changes: 21 additions & 0 deletions
21
apache-solr/example/example-DIH/solr/db/conf/protwords.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
Oops, something went wrong.