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

io.zulia.ZuliaConstants Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package io.zulia;

/**
 * Created by Payam Meyer on 8/7/17.
 * @author pmeyer
 */
public interface ZuliaConstants {

	int DEFAULT_SERVICE_SERVICE_PORT = 32191;
	int DEFAULT_REST_SERVICE_PORT = 32192;

	//HTTP constants
	int SUCCESS = 200;
	int BAD_REQUEST = 400;
	int NOT_FOUND = 404;
	int INTERNAL_ERROR = 500;

	String GET = "GET";
	String POST = "POST";

	String ASSOCIATED_DOCUMENTS_URL = "/associatedDocs";
	String QUERY_URL = "query";
	String FETCH_URL = "fetch";
	String FIELDS_URL = "fields";
	String TERMS_URL = "terms";
	String INDEX_URL = "index";
	String INDEXES_URL = "indexes";
	String NODES_URL = "nodes";
	String STATS_URL = "stats";

	String QUERY = "q";
	String QUERY_FIELD = "qf";
	String FILTER_QUERY = "fq";
	String FILTER_QUERY_JSON = "fqJson";
	String ROWS = "rows";
	String ID = "id";
	String FILE_NAME = "fileName";
	String META_JSON = "metaJson";
	String INDEX = "index";
	String FACET = "facet";
	String SORT = "sort";
	String FETCH = "fetch";
	String FIELDS = "fl";
	String PRETTY = "pretty";
	String MIN_MATCH = "mm";
	String DEBUG = "debug";
	String AMOUNT = "amount";
	String MIN_DOC_FREQ = "minDocFreq";
	String MIN_TERM_FREQ = "minTermFreq";
	String START_TERM = "startTerm";
	String END_TERM = "endTerm";
	String DEFAULT_OP = "defaultOp";
	String DRILL_DOWN = "drillDown";
	String DISMAX = "dismax";
	String DISMAX_TIE = "dismaxTie";
	String SIMILARITY = "sim";
	String START = "start";
	String ACTIVE = "active";

	String TERM_FILTER = "termFilter";
	String TERM_MATCH = "termMatch";
	String INCLUDE_TERM = "includeTerm";

	String FORMAT = "format";

	//General
	String UTF8 = "UTF-8";

	String TIMESTAMP_FIELD = "_lmtsf_";
	String STORED_META_FIELD = "_lmsmf_";
	String STORED_DOC_FIELD = "_lmsdf_";
	String ID_FIELD = "_lmidf_";
	String FIELDS_LIST_FIELD = "_lmflf_";
	String SUPERBIT_PREFIX = "_lmsb_";

	String HIGHLIGHT = "hl";

	String HIGHLIGHT_JSON = "hlJson";

	String ANALYZE_JSON = "alJson";
	String FUZZY_TERM_JSON = "fuzzyTermJson";
	String COS_SIM_JSON = "cosSimJson";

	String DONT_CACHE = "dontCache";
	String BATCH = "batch";
	String BATCH_SIZE = "batchSize";
	String CURSOR = "cursor";

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy