Permalink
Browse files

remove opensearch:relevance

  • Loading branch information...
1 parent c3bd7e0 commit e4d5c5fd8722a61ca0e51837bd54fd653571a09a @bricas bricas committed Jan 30, 2008
@@ -410,11 +410,6 @@ public static Entry asEntry (LuceneContext c, LuceneIndex index, LuceneDocument
entry.addAuthor( new Author( index.getAuthor( document ) ) );
}
- // Score
- if ( score != null ) {
- entry.setPropertyNS( "http://a9.com/-/spec/opensearch/1.1/", "opensearch:relevance", String.valueOf( score ) );
- }
-
// Summary
if ( index.getSummary( document ) != null ) {
entry.setSummary( new Text( index.getSummary( document ) ) );
@@ -192,9 +192,6 @@ public Element asElement (Document document, OpenSearch.Format format, OpenSearc
// score
if ( getScore() != null ) {
element.appendChild( asElementNS( document, "http://a9.com/-/opensearch/extensions/relevance/1.0/", "relevance:score", getScore() ) );
-
- // backwards compatibility
- element.appendChild( asElementNS( document, "http://a9.com/-/spec/opensearch/1.1/", "opensearch:relevance", getScore() ) );
}
// rights

0 comments on commit e4d5c5f

Please sign in to comment.