mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
do not reindex based on vocabulary fields (there are meanwhile many of
them) and some default settings
This commit is contained in:
parent
5a060c9f26
commit
cf9b22ca5c
|
@ -655,6 +655,11 @@ collection=user
|
|||
90_cleanup_memprereq=0
|
||||
90_cleanup_loadprereq=16.0
|
||||
|
||||
reindexSolr_idlesleep=1000
|
||||
reindexSolr_busysleep=1
|
||||
reindexSolr_memprereq=10485760
|
||||
reindexSolr_loadprereq=9.0
|
||||
|
||||
# additional attributes:
|
||||
# performanceIO is a percent-value. a value of 10 means, that 10% of the busysleep time
|
||||
# is used to flush the RAM cache, which is the major part of the IO in YaCy
|
||||
|
|
|
@ -305,17 +305,13 @@ public class migration {
|
|||
omitFields.add(CollectionSchema.coordinate_p_0_coordinate.getSolrFieldName());
|
||||
omitFields.add(CollectionSchema.coordinate_p_1_coordinate.getSolrFieldName());
|
||||
omitFields.add("_version_"); // exclude internal Solr std. field from obsolete check
|
||||
Collection<Tagging> vocs = LibraryProvider.autotagging.getVocabularies();
|
||||
for (Tagging v: vocs) { //exclude configured vocabulary index fields (not in CollectionSchema but valid)
|
||||
omitFields.add(CollectionSchema.VOCABULARY_PREFIX + v.getName() + CollectionSchema.VOCABULARY_TERMS_SUFFIX);
|
||||
}
|
||||
CollectionConfiguration colcfg = Switchboard.getSwitchboard().index.fulltext().getDefaultConfiguration();
|
||||
ReindexSolrBusyThread reidx = new ReindexSolrBusyThread(null); // ("*:*" would reindex all);
|
||||
|
||||
try { // get all fields contained in index
|
||||
Collection<FieldInfo> solrfields = Switchboard.getSwitchboard().index.fulltext().getDefaultEmbeddedConnector().getFields();
|
||||
for (FieldInfo solrfield : solrfields) {
|
||||
if (!colcfg.contains(solrfield.getName()) && !omitFields.contains(solrfield.getName())) { // add found fields not in config for reindexing
|
||||
if (!colcfg.contains(solrfield.getName()) && !omitFields.contains(solrfield.getName()) && !solrfield.getName().startsWith(CollectionSchema.VOCABULARY_PREFIX)) { // add found fields not in config for reindexing but omit the vocabulary fields
|
||||
reidx.addSelectFieldname(solrfield.getName());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user