Repository navigation
Conversation
… creator fess-suggest reads its settings (fess.suggest.compound.*, fess.suggest.fragment.*) from system properties in both JVMs: the web application, when it adds the words of the search logs, and the suggest creator process started by the Suggest Indexer job. The job passed only fess.config.* and fess.system.* (and the job.system.property.filter.pattern matches) on to that process, so a -Dfess.suggest.* option in FESS_JAVA_OPTS changed only the search log path, and the candidates built by the job did not follow it. SuggestJob now also passes every fess.suggest.* property, in the same way as fess.config.* and fess.system.*; the command written to the log is still masked. UPGRADING.md describes the change of the suggest candidates in 15.10, that the suggest index is rebuilt by the next Suggest Indexer run, and the three options that restore the candidates of 15.9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fess-suggest reads its settings for compound words and the fragment filter (
fess.suggest.compound.*,fess.suggest.fragment.*, new in 15.10 with fess-suggest#107/#108) from system properties, in two JVMs: the web application, when it adds the words of the search logs, and the suggest creator process of the Suggest Indexer job, when it builds the index. The job forwarded onlyfess.config.*,fess.system.*and the matches ofjob.system.property.filter.pattern, so a-Dfess.suggest.*option inFESS_JAVA_OPTSchanged only the search-log path, and the next job built the index the other way. The candidates of search words flipped with each job.SuggestJobnow forwardsfess.suggest.*to the suggest creator the same way. Options injvm.suggest.optionscome later on the command line, so they still override a forwarded value for the job.The logged command is masked as before. A forwarded
-Dfess.suggest.compound.break.tokensvalue shows as masked in the job log, because its name matches the default sensitive pattern (.*token.*); the process still receives the value.UPGRADING.mddescribes the change of the suggest candidates in 15.10, when it takes effect (the 15.9 suggest index is served until the next Suggest Indexer run), that the bad words and elevate words carry over, and the three options that restore the 15.9 candidates.Tests
ExecJobTest,SuggestJobTest(a forwardedfess.suggest.*option, and afess.system.*secret still masked in the logged command).-Dfess.suggest.compound.enabled=false -Dfess.suggest.fragment.filter.enabled=falseonly inFESS_JAVA_OPTS, the suggest creator command line carries both options, the job builds no compound words, and a search-log candidate kept by the web application survives the next job. Without the change the job builds the compounds again and drops that candidate.