Skip to content

Commit

Permalink
225: index author names
Browse files Browse the repository at this point in the history
Keep copy to _text_ for tokenized search but revert to whole_strings so
facets are full name.
  • Loading branch information
jimwood committed Jun 9, 2020
1 parent 4144616 commit b3f5514
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Collection extends Common {
private List<String> publicationVenueFor;

@NestedObject
@Indexed(type = "nested_tokenized_strings", copyTo = "_text_")
@Indexed(type = "nested_whole_strings", copyTo = "_text_")
@PropertySource(template = "collection/author", predicate = "http://www.w3.org/2000/01/rdf-schema#label")
private List<String> authors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Document extends Common {
@PropertySource(template = "document/hasPublicationVenueFor", predicate = "http://www.w3.org/2000/01/rdf-schema#label", unique = true)
private String hasPublicationVenueFor;

@Indexed(type = "nested_tokenized_strings", copyTo = "_text_")
@Indexed(type = "nested_whole_strings", copyTo = "_text_")
@NestedObject(properties = { @Reference(value = "authorOrganization", key = "organizations") })
@PropertySource(template = "document/author", predicate = "http://www.w3.org/2000/01/rdf-schema#label")
private List<String> authors;
Expand Down

0 comments on commit b3f5514

Please sign in to comment.