Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into l_rdf_faceting
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Apr 16, 2015
2 parents 9df4aae + 7048f4b commit 463fee0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.PhraseQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQuery;
import org.apache.solr.common.SolrInputDocument;
Expand Down Expand Up @@ -112,7 +113,9 @@ public void inject(final SolrInputDocument document, final Object value) {

@Override
public void addFilterConstraint(final List<Query> filters, final String value) {
filters.add(new TermQuery(new Term(Field.TEXT_OBJECT, value)));
final PhraseQuery query = new PhraseQuery();
query.add(new Term(Field.TEXT_OBJECT, StringEscapeUtils.escapeXml(value)));
filters.add(query);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://example.org/book1> <http://d-nb.info/standards/elementset/gnd#preferredNameForTheSubjectHeading> "Frühe Neuzeit" .
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://example.org/book1> <http://d-nb.info/standards/elementset/gnd#preferredNameForTheSubjectHeading> "Konfiguration <Informatik>" .

0 comments on commit 463fee0

Please sign in to comment.