Searched defs:id (Results 1 - 25 of 62) sorted by relevance

123

/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/id/
H A DTestIndonesianAnalyzer.java1 package org.apache.lucene.analysis.id;
H A DTestIndonesianStemmer.java1 package org.apache.lucene.analysis.id;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/id/
H A DIndonesianAnalyzer.java1 package org.apache.lucene.analysis.id;
H A DIndonesianStemFilter.java1 package org.apache.lucene.analysis.id;
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/
H A DSearchTravRetLoadFieldSelectorTask.java57 protected Document retrieveDoc(IndexReader ir, int id) throws IOException { argument
58 return ir.document(id, fieldSelector);
/lucene-3.6.0/lucene/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/tasks/
H A DCountingHighlighterTestTask.java47 protected Document retrieveDoc(IndexReader ir, int id) throws IOException { argument
48 Document document = ir.document(id);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/
H A DDeleteUpdateCommand.java23 public String id; // external (printable) id, for delete-by-id field in class:DeleteUpdateCommand
37 if (id!=null) sb.append("id=").append(id);
/lucene-3.6.0/solr/core/src/test/org/apache/solr/schema/
H A DNumericFieldsTest.java34 public static SolrInputDocument getDoc(String id, Integer number, String date) { argument
36 doc.addField("id", id);
55 assertU(adoc("id", "M1"));
59 assertU(adoc("id", "M2"));
66 req("fl", "id", "q", "*:*", "sort", (t + suffix) + " asc"),
68 "//result/doc[1]/str[@name='id'][.='M1']",
69 "//result/doc[2]/str[@name='id'][.='M2']",
70 "//result/doc[3]/str[@name='id'][.='-3']",
71 "//result/doc[4]/str[@name='id'][
[all...]
H A DTestBinaryField.java97 doc.addField("id", 1);
102 doc.addField("id", 2);
107 doc.addField("id", 3);
119 Integer id = (Integer) d.getFieldValue("id");
121 if (id == 1) {
128 } else if (id == 2) {
136 } else if (id == 3) {
147 Integer id = d.id;
178 int id; field in class:TestBinaryField.Bean
[all...]
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/client/solrj/
H A DTestBatchUpdate.java80 bean.id = "" + (++counter[0]);
98 String id; field in class:TestBatchUpdate.Bean
114 doc.addField("id", "" + (++counter[0]));
H A DTestBatchUpdateHttpSolrServer.java94 bean.id = "" + (++counter[0]);
112 String id; field in class:TestBatchUpdateHttpSolrServer.Bean
128 doc.addField("id", "" + (++counter[0]));
/lucene-3.6.0/lucene/contrib/queries/src/test/org/apache/lucene/search/
H A DFuzzyLikeThisQueryTest.java65 private void addDoc(RandomIndexWriter writer, String name, String id) throws IOException argument
69 doc.add(newField("id",id,Field.Store.YES,Field.Index.ANALYZED));
89 assertEquals("Should match most similar not most rare variant", "2",doc.get("id"));
105 assertEquals("Should match most similar when using 2 words", "2",doc.get("id"));
120 assertEquals("Should match most similar when using 2 words", "2",doc.get("id"));
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DPersistentSnapshotDeletionPolicy.java159 public synchronized IndexCommit snapshot(String id) throws IOException { argument
160 checkSnapshotted(id);
161 if (SNAPSHOTS_ID.equals(id)) {
162 throw new IllegalArgumentException(id + " is reserved and cannot be used as a snapshot id");
164 persistSnapshotInfos(id, lastCommit.getSegmentsFileName());
165 return super.snapshot(id);
175 public synchronized void release(String id) throws IOException { argument
176 super.release(id);
186 * Persists all snapshots information. If the given id an
189 persistSnapshotInfos(String id, String segment) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DVerifyingLockFactory.java42 byte id; field in class:VerifyingLockFactory
57 out.write(id);
101 * @param id should be a unique id across all clients
108 public VerifyingLockFactory(byte id, LockFactory lf, String host, int port) throws IOException { argument
109 this.id = id;
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestIndexFileDeleter.java72 Term searchTerm = new Term("id", "7");
235 private void addDoc(IndexWriter writer, int id) throws IOException argument
239 doc.add(newField("id", Integer.toString(id), Field.Store.YES, Field.Index.NOT_ANALYZED));
H A DTestTransactionRollback.java48 private void rollBackLast(int id) throws Exception { argument
50 // System.out.println("Attempting to rollback to "+id);
51 String ids="-"+id;
63 throw new RuntimeException("Couldn't find commit point "+id);
67 new RollbackDeletionPolicy(id)).setIndexCommit(last));
69 data.put("index", "Rolled back to 1-"+id);
165 // This code reads the last id ("30" in this example) and deletes it
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestIndexFileDeleter.java72 Term searchTerm = new Term("id", "7");
235 private void addDoc(IndexWriter writer, int id) throws IOException argument
239 doc.add(newField("id", Integer.toString(id), Field.Store.YES, Field.Index.NOT_ANALYZED));
H A DTestTransactionRollback.java48 private void rollBackLast(int id) throws Exception { argument
50 // System.out.println("Attempting to rollback to "+id);
51 String ids="-"+id;
63 throw new RuntimeException("Couldn't find commit point "+id);
67 new RollbackDeletionPolicy(id)).setIndexCommit(last));
69 data.put("index", "Rolled back to 1-"+id);
165 // This code reads the last id ("30" in this example) and deletes it
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/
H A DExtractWikipedia.java68 public void create(String id, String title, String time, String body) { argument
72 File f = new File(d, id + ".txt");
/lucene-3.6.0/solr/core/src/test/org/apache/solr/update/
H A DDirectUpdateHandlerTest.java74 cmd.doc.add( new Field( "id", "AAA", Store.YES, Index.NOT_ANALYZED ) );
79 cmd.indexedId = null; // reset the id for this add
81 cmd.doc.add( new Field( "id", "AAA", Store.YES, Index.NOT_ANALYZED ) );
82 cmd.doc.add( new Field( "id", "BBB", Store.YES, Index.NOT_ANALYZED ) );
90 // Add a document without an id
91 cmd.indexedId = null; // reset the id for this add
107 args.put( CommonParams.Q, "id:A" );
128 args.put( CommonParams.Q, "id:A" );
133 ,"//result/doc[1]/str[@name='id'][.='A']"
151 args.put( CommonParams.Q, "id
334 addSimpleDoc(String id) argument
350 deleteSimpleDoc(String id) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/complexPhrase/
H A DTestComplexPhraseQuery.java67 checkBadQuery("\"jo* id:1 smith\""); // mixing fields in a phrase is bad
101 String id = doc.get("id");
102 assertTrue(qString + "matched doc#" + id + " not expected", expecteds
103 .contains(id));
104 expecteds.remove(id);
120 doc.add(newField("id", docsContent[i].id, Field.Store.YES,
138 String id; field in class:TestComplexPhraseQuery.DocData
140 public DocData(String name, String id) { argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/
H A DTestSpansAdvanced.java83 * @param id the unique id of the document
87 protected void addDocument(final RandomIndexWriter writer, final String id, argument
91 document.add(newField(FIELD_ID, id, Field.Store.YES,
160 int id = topdocs.scoreDocs[i].doc;
162 Document doc = s.doc(id);
168 System.out.println(s.explain(query, id));
171 assertEquals(s.explain(query, id).getValue(), score, tolerance);
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A DLineFileDocs.java41 private final AtomicInteger id = new AtomicInteger(); field in class:LineFileDocs
104 id.set(0);
114 final Field id; field in class:LineFileDocs.DocState
129 id = new Field("docid", "", Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS);
130 doc.add(id);
175 docState.id.setValue(Integer.toString(id.getAndIncrement()));
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DSolrWriter.java75 public void deleteDoc(Object id) { argument
77 log.info("Deleting document: " + id);
79 delCmd.id = id.toString();
84 log.error("Exception while deleteing: " + id, e);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/spans/
H A DTestSpansAdvanced.java83 * @param id the unique id of the document
87 protected void addDocument(final RandomIndexWriter writer, final String id, argument
91 document.add(newField(FIELD_ID, id, Field.Store.YES,
160 int id = topdocs.scoreDocs[i].doc;
162 Document doc = s.doc(id);
168 System.out.println(s.explain(query, id));
171 assertEquals(s.explain(query, id).getValue(), score, tolerance);

Completed in 28 milliseconds

123