Changeset 3454
- Timestamp:
- 09/02/10 11:15:24 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molgenis_projects/hvp_pilot2/handwritten/java/plugins/DBIndexPlugin.java
r3188 r3454 74 74 this.hits = hits; 75 75 //TODO: this 10 is a cheat .. 76 for (int i=0; i<hits+10; i++) this.FieldValues.add(new ArrayList<String>()); //TODO : figure out the correct size of fieldValues that wont't produce an exception 76 for (int i=0; i<hits+10; i++) this.FieldValues.add(new ArrayList<String>()); 77 //TODO : figure out the correct size of fieldValues that wont't produce an exception 77 78 78 79 } … … 91 92 92 93 93 //comp erae every field inside the table to see whether it belongs to the class .94 //compare every field inside the table to see whether it belongs to the class . 94 95 // First have to form it in the correct structure : hvp_pilot2.Gene.id 95 96 // we dont' ned the name of all the fields. Just check whether the fields stored inside DBFieldNamesList2, starts with tmp . … … 193 194 //Document document = new Document(); 194 195 195 //DONE : TODO : include t ehname of teh class in the index196 //DONE : TODO : include the name of teh class in the index 196 197 Document document1 = null; 197 198 fullText = aClass.getName(); … … 214 215 //System.out.println("All : 1st (" + fieldName + ")as InsertFieldValue inserted in Index" + InsertFieldValue.toString()); 215 216 217 //this is the same as InsertFieldValue. Though if you remove it , the field is not included and search does not work. 216 218 Field fullTextField = new Field("fulltext", fullText, Field.Store.NO, Field.Index.ANALYZED); 217 219 document1.add(fullTextField);
Note: See TracChangeset
for help on using the changeset viewer.