All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.solr.handler.StandardRequestHandler Maven / Gradle / Ivy

The newest version!
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.solr.handler;

import org.apache.solr.common.util.NamedList;
import org.apache.solr.handler.component.*;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * @version $Id: StandardRequestHandler.java 631357 2008-02-26 19:47:07Z yonik $
 *
 * All of the following options may be configured for this handler
 * in the solrconfig as defaults, and may be overriden as request parameters.
 * (TODO: complete documentation of request parameters here, rather than only
 * on the wiki).
 * 

* *
    *
  • highlight - Set to any value not .equal() to "false" to enable highlight * generation
  • *
  • highlightFields - Set to a comma- or space-delimited list of fields to * highlight. If unspecified, uses the default query field
  • *
  • maxSnippets - maximum number of snippets to generate per field-highlight. *
  • *
* */ public class StandardRequestHandler extends SearchHandler { //////////////////////// SolrInfoMBeans methods ////////////////////// @Override public String getVersion() { return "$Revision: 631357 $"; } @Override public String getDescription() { return "The standard Solr request handler"; } @Override public String getSourceId() { return "$Id: StandardRequestHandler.java 631357 2008-02-26 19:47:07Z yonik $"; } @Override public String getSource() { return "$URL: https://svn.apache.org/repos/asf/lucene/solr/branches/branch-1.4/src/java/org/apache/solr/handler/StandardRequestHandler.java $"; } @Override public URL[] getDocs() { try { return new URL[] { new URL("http://wiki.apache.org/solr/StandardRequestHandler") }; } catch( MalformedURLException ex ) { return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy