/** * Returns the object that is to be the end of the TermPipeline. * This method is used at construction time of the parent object. * @return TermPipeline the last component of the term pipeline. */ protected TermPipeline getEndOfPipeline() { // if using delimited blocks if (Boolean.parseBoolean(ApplicationSetup.getProperty("block.delimiters.enabled", "false"))) { String delim = ApplicationSetup.getProperty("block.delimiters", "").trim(); if (Boolean.parseBoolean(ApplicationSetup.getProperty("lowercase", "true"))) delim = delim.toLowerCase(); String delims[] = delim.split("\\s*,\\s*"); final boolean indexDelims = Boolean.parseBoolean(ApplicationSetup.getProperty("block.delimiters.index.terms", "false")); final boolean countDelims = Boolean.parseBoolean(ApplicationSetup.getProperty("block.delimiters.index.doclength","true")); return (FieldScore.USE_FIELD_INFORMATION) ? new DelimFieldTermProcessor(delims, indexDelims, countDelims) : new DelimTermProcessor(delims, indexDelims, countDelims); } else if (FieldScore.USE_FIELD_INFORMATION) { return new FieldTermProcessor(); } return new BasicTermProcessor(); }