Searched defs:version (Results 1 - 21 of 21) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexFormatTooNewException.java24 * an index that is newer than this Lucene version.
29 public IndexFormatTooNewException(String resourceDesc, int version, int minVersion, int maxVersion) { argument
30 super("Format version is not supported (resource: " + resourceDesc + "): "
31 + version + " (needs to be between " + minVersion + " and " + maxVersion + ")");
36 public IndexFormatTooNewException(DataInput in, int version, int minVersion, int maxVersion) { argument
37 this(in.toString(), version, minVersion, maxVersion);
H A DIndexFormatTooOldException.java24 * an index that is too old for this Lucene version
29 public IndexFormatTooOldException(String resourceDesc, String version) { argument
30 super("Format version is not supported (resource: " + resourceDesc + "): " +
31 version + ". This version of Lucene only supports indexes created with release 1.9 and later.");
36 public IndexFormatTooOldException(DataInput in, String version) { argument
37 this(in.toString(), version);
41 public IndexFormatTooOldException(String resourceDesc, int version, int minVersion, int maxVersion) { argument
42 super("Format version is not supported (resource: " + resourceDesc + "): " +
43 version
49 IndexFormatTooOldException(DataInput in, int version, int minVersion, int maxVersion) argument
[all...]
H A DIndexFileDeleter.java643 long version; field in class:IndexFileDeleter.CommitPoint
653 version = segmentInfos.getVersion();
686 return version;
H A DSegmentInfo.java100 // Tracks the Lucene version this segment was created with, since 3.1. The
104 private String version; field in class:SegmentInfo
123 this.version = Constants.LUCENE_MAIN_VERSION;
131 version = src.version;
171 version = input.readString();
388 si.version = version;
600 // Write the Lucene version that created this segment, since 3.1
601 output.writeString(version);
855 setVersion(String version) argument
[all...]
H A DSegmentInfos.java51 /** The file format version, a negative number. */
99 /** Each segment records the Lucene version that created it. */
111 * starting with the current time in milliseconds forces to create unique version numbers.
113 long version = System.currentTimeMillis(); field in class:SegmentInfos
282 version = input.readLong(); // read version
288 // It's a pre-3.1 segment, upgrade its version to either 3.0 or 2.x
312 if(format >= 0){ // in old format the version number may be at the end of the file
314 version = System.currentTimeMillis(); // old file format without version numbe
[all...]
H A DDirectoryReader.java63 // Max version in index as of when we opened; this can be
64 // > our current segmentInfos version in case we were
1003 long version; field in class:DirectoryReader.ReaderCommit
1012 version = infos.getVersion();
1044 return version;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DStopwordAnalyzerBase.java58 * @param version
59 * the Lucene version for cross version compatibility
63 protected StopwordAnalyzerBase(final Version version, final Set<?> stopwords) { argument
64 matchVersion = version;
67 .unmodifiableSet(CharArraySet.copy(version, stopwords));
73 * @param version
74 * the Lucene version for cross version compatibility
76 protected StopwordAnalyzerBase(final Version version) { argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DCodecUtil.java41 public static DataOutput writeHeader(DataOutput out, String codec, int version) argument
49 out.writeInt(version);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/en/
H A DEnglishPossessiveFilter.java29 * <a name="version"/>
50 public EnglishPossessiveFilter(Version version, TokenStream input) { argument
52 this.matchVersion = version;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hi/
H A DHindiAnalyzer.java39 * <a name="version"/>
87 * @param version lucene compatibility version
91 public HindiAnalyzer(Version version, Set<?> stopwords, Set<?> stemExclusionSet) { argument
92 super(version, stopwords);
100 * @param version lucene compatibility version
103 public HindiAnalyzer(Version version, Set<?> stopwords) { argument
104 this(version, stopwords, CharArraySet.EMPTY_SET);
111 public HindiAnalyzer(Version version) { argument
[all...]
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/index/
H A DMultiPassIndexSplitter.java77 public void split(Version version, IndexReader input, Directory[] outputs, boolean seq) throws IOException { argument
116 version,
H A DPKIndexSplitter.java74 public PKIndexSplitter(Version version, Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex) { argument
75 this(input, dir1, dir2, docsInFirstIndex, newDefaultConfig(version), newDefaultConfig(version));
78 private static IndexWriterConfig newDefaultConfig(Version version) { argument
79 return new IndexWriterConfig(version, null).setOpenMode(OpenMode.CREATE);
97 public PKIndexSplitter(Version version, Directory input, Directory dir1, Directory dir2, Term midTerm) { argument
98 this(version, input, dir1, dir2,
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DSearcherLifetimeManager.java109 public final long version; field in class:SearcherLifetimeManager.SearcherTracker
113 version = searcher.getIndexReader().getVersion();
142 // Tracker hash by its version and have compareTo(Long)
143 // compare to its version
170 final long version = searcher.getIndexReader().getVersion();
171 SearcherTracker tracker = searchers.get(version);
173 //System.out.println("RECORD version=" + version + " ms=" + System.currentTimeMillis());
175 if (searchers.putIfAbsent(version, tracker) != null) {
181 throw new IllegalArgumentException("the provided searcher has the same underlying reader version ye
199 acquire(long version) argument
[all...]
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndex.java66 private long version = System.currentTimeMillis(); field in class:InstantiatedIndex
331 return version;
334 void setVersion(long version) { argument
335 this.version = version;
/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DIndexDeletionPolicyWrapper.java31 * Provides features for looking up IndexCommit given a version. Allows reserving index
35 * @version $Id: IndexDeletionPolicyWrapper.java 1201265 2011-11-12 14:09:28Z mikemccand $
68 * @param indexVersion version of the commit point to be reserved
168 Long version = delegate.getVersion();
169 Long reserve = reserves.get(version);
171 if(savedCommits.containsKey(version)) return;
217 * @param version the version of the commit point
218 * @return a commit point corresponding to the given version
220 public IndexCommit getCommitPoint(Long version) { argument
[all...]
H A DSolrCore.java70 * @version $Id: SolrCore.java 1305693 2012-03-27 00:43:47Z janhoy $
73 public static final String version="1.0"; field in class:SolrCore
1709 return SolrCore.version;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hunspell/
H A DHunspellDictionary.java60 private final Version version; field in class:HunspellDictionary
68 * @param version Lucene Version
72 public HunspellDictionary(InputStream affix, InputStream dictionary, Version version) throws IOException, ParseException { argument
73 this(affix, Arrays.asList(dictionary), version, IGNORE_CASE_DEFAULT);
82 * @param version Lucene Version
87 public HunspellDictionary(InputStream affix, InputStream dictionary, Version version, boolean ignoreCase) throws IOException, ParseException { argument
88 this(affix, Arrays.asList(dictionary), version, ignoreCase);
97 * @param version Lucene Version
102 public HunspellDictionary(InputStream affix, List<InputStream> dictionaries, Version version, boolean ignoreCase) throws IOException, ParseException { argument
103 this.version
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/
H A DXMLWriter.java42 * @version $Id: XMLWriter.java 1171741 2011-09-16 19:29:23Z hossman $
51 private static final char[] XML_START1="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n".toCharArray();
109 // special case the response header if the version is 2.1 or less
110 if (xw.version<=2100 && sz>0) {
160 final int version; field in class:XMLWriter
169 public XMLWriter(Writer writer, IndexSchema schema, SolrQueryRequest req, String version) { argument
174 float ver = version==null? CURRENT_VERSION : Float.parseFloat(version);
175 this.version = (int)(ver*1000);
367 if (version>
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/
H A DJavaBinCodec.java93 byte version; field in class:JavaBinCodec
97 version = dis.readByte();
98 if (version != VERSION) {
99 throw new RuntimeException("Invalid version (expected " + VERSION +
100 ", but " + version + ") or the data in not in 'javabin' format");
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/
H A DSnapPuller.java56 * @version $Id: SnapPuller.java 1065312 2011-01-30 16:08:25Z rmuir $
172 * Gets the latest commit version and generation from the master
210 void fetchFileList(long version) throws IOException { argument
213 post.addParameter(CMD_INDEX_VERSION, String.valueOf(version));
221 LOG.error("No files to download for indexversion: "+ version);
243 //get the current 'replicateable' index version in the master
271 LOG.info("Master's version: " + latestVersion + ", generation: " + latestGeneration);
272 LOG.info("Slave's version: " + commit.getVersion() + ", generation: " + commit.getGeneration());
537 * @param latestVersion the version number
1051 //add the version t
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DIndexSchema.java58 * @version $Id: IndexSchema.java 1306155 2012-03-28 04:35:45Z dsmiley $
68 private float version; field in class:IndexSchema
154 return version;
430 version = schemaConf.getFloat("/schema/@version", 1.0f);
908 // first try to use a ctor with version parameter

Completed in 47 milliseconds