If true, then the lookup data structure will be built when Solr starts or when the core is reloaded. In such cases, using buildOnCommit or buildOnOptimize, particularly with a high frequency of softCommits is not recommended it’s recommended instead to build the suggester at a lower frequency by manually issuing requests with suggest.build=true. Some lookup implementations may take a long time to build, especially with large indexes. Use buildOnCommit to rebuild the dictionary with every soft-commit, or buildOnOptimize to build the dictionary only when the index is optimized. If false, the default, then the lookup data will be built only when requested by URL parameter suggest.build=true. If true, the lookup data structure will be rebuilt after soft-commit. storeDir The location to store the dictionary file. If this value is empty then the main index will be used as a source of terms and weights. sourceLocation The path to the dictionary file if using the FileDictionaryFactory. If using the AnalyzingLookupFactory as your lookupImpl, however, you have the option of defining the field type rules to use for index and query time analysis. However, this minimal analysis is not required if you want more analysis to occur on terms. One option for such a field type is shown here: In any event, you very likely want a minimal amount of analysis on the field, so an additional option is to create a field type in your schema that only uses basic tokenizers or filters. You may want to use copyField rules to create a special 'suggest' field comprised of terms from other fields in documents. To be used as the basis for a suggestion, the field must be stored. If sourceLocation is empty (meaning any dictionary implementation other than FileDictionaryFactory), then terms from this field in the index will be used. fieldĪ field from the index to use as the basis of suggestion terms. However, if a sourceLocation is used, the dictionary implementation will be FileDictionaryFactory. If not set, the default dictionary implementation is HighFrequencyDictionaryFactory. There are several possible implementations, described below in the section Dictionary Implementations. If not set, the default lookup is JaspellLookupFactory. There are several possible implementations, described below in the section Lookup Implementations. It is possible to have multiples of these in one solrconfig.xml file. You can refer to this name in the URL parameters and in the SearchHandler configuration. SearchComponent name Arbitrary name for the search component.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |