Skip to content

Commit

Permalink
Fixed an indexing bug that was ignoring normalised forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcayless committed Oct 7, 2014
1 parent de94291 commit c81a43f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pn-site/annotator/js/xpointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,4 @@ var XPointer = {
}
return XPointer.getLocation(contextNode, matchindex, matches[index - 1].length);
}
}
}
5 changes: 4 additions & 1 deletion pn-solr/pn-search/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<field name="series" type="string" indexed="true" stored="false" multiValued="false" required="true"/>
<field name="series_led_path" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="title" type="text" indexed="false" stored="true" multiValued="false"/>
<field name="tm_metadata" type="lctext" indexed="true" stored="false" multiValued="true"/>
<field name="transcription" type="text" indexed="true" stored="false" multiValued="true"/>
<field name="transcription_ia" type="text" indexed="true" stored="false" multiValued="true"/>
<field name="transcription_ic" type="text" indexed="true" stored="false" multiValued="true"/>
Expand All @@ -135,7 +136,7 @@
<field name="translation_language" type="string" indexed="true" stored="false" multiValued="true"/>
<field name="unknown_date_flag" type="boolean" indexed="true" multiValued="false" required="false"/>
<field name="untokenized" type="untokenized" indexed="true" stored="false" multiValued="true"></field>
<field name="untokenized_ia" type="untokenized" indexed="true" stored="false" multiValued="true"></field>
<field name="untokenized_ia" type="untokenized" indexed="true" stored="false" multiValued="true"></field>
<field name="untokenized_ic" type="untokenized" indexed="true" stored="false" multiValued="true"></field>
<field name="untokenized_id" type="untokenized" indexed="true" stored="false" multiValued="true"></field>
<field name="volume" type="int" indexed="true" stored="false" multiValued="false" required="true" default="0"/>
Expand Down Expand Up @@ -170,8 +171,10 @@
<copyField source="transcription_ia" dest="all"/>
<copyField source="translation" dest="all"/>
<copyField source="hgv_metadata" dest="all"/>
<copyField source="tm_metadata" dest="all"/>
<copyField source="apis_metadata" dest="all"/>
<copyField source="hgv_metadata" dest="metadata"/>
<copyField source="tm_metadata" dest="metadata"/>
<copyField source="apis_metadata" dest="metadata"/>
<copyField source="transcription" dest="untokenized"/>
<copyField source="transcription_ia" dest="untokenized_ia"/>
Expand Down
10 changes: 8 additions & 2 deletions pn-xslt/MakeSolr.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1080,12 +1080,18 @@

<xsl:template name="reg-text-processing">
<xsl:param name="temp-node"></xsl:param>
<xsl:apply-templates select="$temp-node//t:div[@type='edition']"></xsl:apply-templates>
<xsl:apply-templates select="$temp-node//t:div[@type='edition']">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
</xsl:apply-templates>
</xsl:template>

<xsl:template name="orig-text-processing">
<xsl:param name="temp-node"></xsl:param>
<xsl:apply-templates select="$temp-node//t:div[@type='edition']"></xsl:apply-templates>
<xsl:apply-templates select="$temp-node//t:div[@type='edition']">
<xsl:with-param name="parm-apparatus-style" select="$apparatus-style" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
</xsl:apply-templates>
</xsl:template>

<xsl:template name="app-link">
Expand Down

0 comments on commit c81a43f

Please sign in to comment.