mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
activate two solr fields which will be used by administration interface
(later)
This commit is contained in:
parent
fcd5c7eec3
commit
9db032664e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user