Changeset 3454


Ignore:
Timestamp:
09/02/10 11:15:24 (17 months ago)
Author:
antonak
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molgenis_projects/hvp_pilot2/handwritten/java/plugins/DBIndexPlugin.java

    r3188 r3454  
    7474                        this.hits  = hits; 
    7575                        //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  
    7778                         
    7879                } 
     
    9192                 
    9293                 
    93                 //comperae 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 .  
    9495                // First have to form it in the correct structure : hvp_pilot2.Gene.id 
    9596                // we dont' ned the name of all the fields. Just check whether the fields stored inside DBFieldNamesList2, starts with tmp .  
     
    193194                                        //Document document = new Document(); 
    194195                                         
    195                                         //DONE : TODO : include teh name of teh class in the index 
     196                                        //DONE : TODO : include the name of teh class in the index 
    196197                                        Document document1 = null; 
    197198                                        fullText  = aClass.getName(); 
     
    214215                                                        //System.out.println("All : 1st (" + fieldName + ")as InsertFieldValue inserted in Index" + InsertFieldValue.toString()); 
    215216                                                         
     217                                                        //this is the same as InsertFieldValue. Though if you remove it , the field is not included and search does not work.  
    216218                                                        Field fullTextField = new Field("fulltext", fullText, Field.Store.NO, Field.Index.ANALYZED); 
    217219                                                        document1.add(fullTextField); 
Note: See TracChangeset for help on using the changeset viewer.