activate two solr fields which will be used by administration interface

(later)
This commit is contained in:
Michael Peter Christen 2012-09-11 20:15:54 +02:00
parent fcd5c7eec3
commit 9db032664e
3 changed files with 5 additions and 3 deletions

View File

@ -301,7 +301,7 @@ italic_txt
#url_protocol_s
## all path elements in the url
#url_paths_sxt
url_paths_sxt
## number of key-value pairs in search part of the url
#url_parameter_i
@ -316,7 +316,7 @@ italic_txt
#url_chars_i
## host of the url, string
#host_s
host_s
## the Domain Class Name, either the TLD or a combination of ccSLD+TLD if a ccSLD is used.
#host_dnc_s

View File

@ -275,7 +275,7 @@ public class GSAResponseWriter implements QueryResponseWriter {
continue;
}
if (YaCySchema.size_i.name().equals(fieldName)) {
size = Integer.parseInt(value.stringValue());
size = value.stringValue() != null && value.stringValue().length() > 0 ? Integer.parseInt(value.stringValue()) : -1;
continue;
}
}

View File

@ -53,6 +53,7 @@ import net.yacy.document.parser.html.ImageEntry;
import net.yacy.kelondro.data.meta.DigestURI;
import net.yacy.kelondro.data.meta.URIMetadata;
import net.yacy.kelondro.data.meta.URIMetadataNode;
import net.yacy.kelondro.data.meta.URIMetadataRow;
import net.yacy.kelondro.logging.Log;
import net.yacy.kelondro.order.Bitfield;
@ -203,6 +204,7 @@ public class SolrConfiguration extends ConfigurationSet implements Serializable
}
public SolrInputDocument metadata2solr(final URIMetadata md) {
assert md instanceof URIMetadataRow;
if (md instanceof URIMetadataNode) {
return ClientUtils.toSolrInputDocument(((URIMetadataNode) md).getDocument());
}