Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recursive prefix tree (RPT) field for point data #59

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: java
jdk: oraclejdk8
jdk: openjdk8
install: mvn install -DskipTests=true
script: mvn test -pl index-data-converter
6 changes: 6 additions & 0 deletions solr-config/core/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@
</fieldType>

<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
<fieldType name="location_grpt" class="solr.RptWithGeometrySpatialField"
distErrPct="0.025"
maxDistErr="0.001"
distanceUnits="kilometers" />
</types>
<fields>
<!-- general -->
Expand Down Expand Up @@ -374,6 +378,7 @@
<field name="latitude" type="double" indexed="true" stored="true" multiValued="false"/>
<field name="longitude" type="double" indexed="true" stored="true" multiValued="false"/>
<field name="location" type="location" indexed="true" stored="true" multiValued="false"/>
<field name="location_grpt" type="location_grpt" indexed="true" stored="false" multiValued="false"/>
<field name="isPromotable" type="boolean" indexed="true" stored="true" multiValued="false" default="false"/>
<field name="annotatorId" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="annotatorName" type="string" indexed="true" stored="false" multiValued="false"/>
Expand Down Expand Up @@ -654,6 +659,7 @@
<copyField source="targets" dest="targetNames_ngram"/>
<copyField source="targets" dest="text"/>
<copyField source="title" dest="text"/>
<copyField source="location" dest="location_grpt"/>

<!-- Copy of fields after language detection into txt_lang fields for multilingual indexing-->
<!-- Copy of fields after language detection into text field for term expansion-->
Expand Down