Changeset 32098 for gs3-extensions/solr
- Timestamp:
- 2017-12-12T19:36:16+13:00 (6 years ago)
- Location:
- gs3-extensions/solr/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/conf/schema.xml.in
r31859 r32098 250 250 251 251 <!-- dynamic field for sort/facet fields, which are strings by default. ie not tokenised --> 252 <dynamicField name="by*" type="string" indexed="true" stored="false" multiValued=" false" />252 <dynamicField name="by*" type="string" indexed="true" stored="false" multiValued="true" /> 253 253 254 254 <!-- uncomment the following to ignore any fields that don't already match an existing -
gs3-extensions/solr/trunk/src/perllib/solrbuildproc.pm
r30050 r32098 611 611 push (@metadata_list, @section_metadata); 612 612 } 613 my $new_text = ""; 613 # my $new_text = ""; 614 # foreach my $item (@metadata_list) { 615 # &ghtml::htmlsafe($item); 616 # $new_text .= "$item "; 617 # } 618 # if ($new_text =~ /\S/) { 619 # $new_text = "<field name=\"$sf_shortname\">$new_text</field>\n"; 620 # # filter the text??? 621 # $text .= "$new_text"; # add it to the main text block 622 # print "#### new_text: $new_text\n"; 623 624 # $self->{'actualsortfields'}->{$sfield} = 1; 625 # } 626 # print "#### TEXT: $text\n"; 627 614 628 foreach my $item (@metadata_list) { 615 629 &ghtml::htmlsafe($item); 616 $new_text .= "$item "; 617 } 618 if ($new_text =~ /\S/) { 619 $new_text = "<field name=\"$sf_shortname\">$new_text</field>\n"; 630 631 $item = "<field name=\"$sf_shortname\">$item</field>\n"; 620 632 # filter the text??? 621 $text .= "$new_text"; # add it to the main text block 622 $self->{'actualsortfields'}->{$sfield} = 1; 623 } 633 $text .= "$item"; # add it to the main text block 634 #print "#### new_text: $item\n"; 635 } 636 if(scalar @metadata_list > 0) { 637 $self->{'actualsortfields'}->{$sfield} = 1; 638 } 639 624 640 } 625 641 }
Note:
See TracChangeset
for help on using the changeset viewer.