src/main/java/org/string_db/psicquic/index/StringdbSolrIndexer.java
private boolean indexDummyInteraction() {
        try {
            searchServer.deleteAll();
            searchServer.commit(true);
            assert (0 == searchServer.countIndexedDocuments());

            String interaction = "uniprotkb:P21333\tuniprotkb:P07228\tintact:EBI-350432\tintact:EBI-5606437\tuniprotkb:FLNA(gene name)|uniprotkb:FLN(gene name synonym)|uniprotkb:FLN1(gene name synonym)|uniprotkb:Alpha-filamin(gene name synonym)|uniprotkb:Filamin-1(gene name synonym)|uniprotkb:Endothelial actin-binding protein(gene name synonym)|uniprotkb:Actin-binding protein 280(gene name synonym)|uniprotkb:Non-muscle filamin(gene name synonym)\tuniprotkb:ITGB1(gene name)|uniprotkb:CSAT antigen(gene name synonym)|uniprotkb:JG22 antigen(gene name synonym)|uniprotkb:RGD-receptor(gene name synonym)\tpsi-mi:\"MI:0018\"(two hybrid)\tLoo DT et al.(1998)\tpubmed:9722563|imex:IM-17229\ttaxid:4932(yeasx)|taxid:4932(\"Saccharomyces cerevisiae (Baker's yeast)\")|taxid:9606(human)|taxid:9606(Homo sapiens)\ttaxid:9031(chick)|taxid:9031(\"Gallus gallus (Chicken)\")\tpsi-mi:\"MI:0915\"(physical association)\tpsi-mi:\"MI:1124\"(mbinfo)\tintact:EBI-5606332\t-\t-\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0498\"(prey)\tpsi-mi:\"MI:0496\"(bait)\tpsi-mi:\"MI:0326\"(protein)\tpsi-mi:\"MI:0326\"(protein)\trefseq:NP_001104026.1|refseq:NP_001447.2|interpro:IPR001589|interpro:IPR001715|interpro:IPR001298|interpro:IPR017868|interpro:IPR013783|interpro:IPR014756|go:\"GO:0015629\"|go:\"GO:0005938\"|go:\"GO:0005829\"|go:\"GO:0005576\"|go:\"GO:0005634\"|go:\"GO:0005886\"|go:\"GO:0051015\"|go:\"GO:0034988\"|go:\"GO:0001948\"|go:\"GO:0042803\"|go:\"GO:0048365\"|go:\"GO:0004871\"|go:\"GO:0008134\"|go:\"GO:0051764\"|go:\"GO:0031532\"|go:\"GO:0034329\"|go:\"GO:0051220\"|go:\"GO:0045184\"|go:\"GO:0007195\"|go:\"GO:0042177\"|go:\"GO:0043433\"|go:\"GO:0030168\"|go:\"GO:0002576\"|go:\"GO:0043123\"|go:\"GO:0042993\"|go:\"GO:0034394\"|go:\"GO:0050821\"|go:\"GO:0043113\"|ensembl:ENSG00000196924|ensembl:ENSG00000196924|reactome:REACT_604|ipi:IPI00302592|ipi:IPI00333541|rcsb pdb:2AAV|rcsb pdb:2BP3|rcsb pdb:2BRQ|rcsb pdb:2J3S|rcsb pdb:2JF1|rcsb pdb:2K3T|rcsb pdb:2K7P|rcsb pdb:2K7Q|rcsb pdb:2W0P|rcsb pdb:2WFN|rcsb pdb:3CNK|rcsb pdb:3HOC|rcsb pdb:3HOP|rcsb pdb:3HOR|rcsb pdb:3ISW|rcsb pdb:3RGH|go:\"GO:0031523\"|go:\"GO:0090307\"|uniprotkb:Q8NF52(secondary-ac)|intact:EBI-1103234(intact-secondary)|uniprotkb:Q5HY53(secondary-ac)|uniprotkb:Q5HY55(secondary-ac)|reactome:REACT_111155|go:\"GO:0017160\"\tgo:\"GO:0008305\"|go:\"GO:0042470\"|go:\"GO:0004872\"|go:\"GO:0007229\"|interpro:IPR013111|interpro:IPR015812|interpro:IPR014836|interpro:IPR002369|interpro:IPR012896|interpro:IPR003659|interpro:IPR016201|interpro:IPR002035|ipi:IPI00735136|go:\"GO:0007160\"|go:\"GO:0007275\"|go:\"GO:0005515\"\timex:IM-17229-1(imex-primary)\t-\t-\tcuration depth:imex curation|full coverage:Only protein-protein interactions|figure legend:Fig. 3,4,5,6,7 and 8.|isoform-comment:The human filamin consists of three isoforms. The protein included in this entry is Filamin A.\t-\t-\t2012/02/23\t2012/03/01\tcrc64:6C1A07041DF50142\tcrc64:2F6FEFCDF2C80457\tintact-crc:08C4486B755C70C0\ttrue\tnecessary binding region:2171-2647\tnecessary binding region:757-800|mutation decreasing interaction:764-764|mutation disrupting interaction:788-788|mutation disrupting interaction:788-788|mutation decreasing interaction:788-788|mutation decreasing interaction:797-797|mutation decreasing interaction:785-785|mutation decreasing interaction:786-786|mutation decreasing interaction:797-797\t-\t-\tpsi-mi:\"MI:0396\"(predetermined participant)\tpsi-mi:\"MI:0396\"(predetermined participant)";
            final Row row = new MitabCalimochoLineMapper().mapLine(interaction, 0);
            searchServer.add(row);
            searchServer.commit(true);
            final Long results = searchServer.countIndexedDocuments();
            assert (1 == results);
            searchServer.deleteAll();
            searchServer.commit(true);
            return true;
        } catch (Exception e) {
            log.error("failed to index a test document", e);
            throw new ExceptionInInitializerError(e);
        }
    }
/**
     * test run just to make sure solr accepts writes
     *
     * @return
     */
test run just to make sure solr accepts writes
@return
test run just to make sure solr accepts writes @return
private boolean indexDummyInteraction() {
        try {
            searchServer.deleteAll();
            searchServer.commit(true);
            assert (0 == searchServer.countIndexedDocuments());
            String interaction = "uniprotkb:P21333\tuniprotkb:P07228\tintact:EBI-350432\tintact:EBI-5606437\tuniprotkb:FLNA(gene name)|uniprotkb:FLN(gene name synonym)|uniprotkb:FLN1(gene name synonym)|uniprotkb:Alpha-filamin(gene name synonym)|uniprotkb:Filamin-1(gene name synonym)|uniprotkb:Endothelial actin-binding protein(gene name synonym)|uniprotkb:Actin-binding protein 280(gene name synonym)|uniprotkb:Non-muscle filamin(gene name synonym)\tuniprotkb:ITGB1(gene name)|uniprotkb:CSAT antigen(gene name synonym)|uniprotkb:JG22 antigen(gene name synonym)|uniprotkb:RGD-receptor(gene name synonym)\tpsi-mi:\"MI:0018\"(two hybrid)\tLoo DT et al.(1998)\tpubmed:9722563|imex:IM-17229\ttaxid:4932(yeasx)|taxid:4932(\"Saccharomyces cerevisiae (Baker's yeast)\")|taxid:9606(human)|taxid:9606(Homo sapiens)\ttaxid:9031(chick)|taxid:9031(\"Gallus gallus (Chicken)\")\tpsi-mi:\"MI:0915\"(physical association)\tpsi-mi:\"MI:1124\"(mbinfo)\tintact:EBI-5606332\t-\t-\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0498\"(prey)\tpsi-mi:\"MI:0496\"(bait)\tpsi-mi:\"MI:0326\"(protein)\tpsi-mi:\"MI:0326\"(protein)\trefseq:NP_001104026.1|refseq:NP_001447.2|interpro:IPR001589|interpro:IPR001715|interpro:IPR001298|interpro:IPR017868|interpro:IPR013783|interpro:IPR014756|go:\"GO:0015629\"|go:\"GO:0005938\"|go:\"GO:0005829\"|go:\"GO:0005576\"|go:\"GO:0005634\"|go:\"GO:0005886\"|go:\"GO:0051015\"|go:\"GO:0034988\"|go:\"GO:0001948\"|go:\"GO:0042803\"|go:\"GO:0048365\"|go:\"GO:0004871\"|go:\"GO:0008134\"|go:\"GO:0051764\"|go:\"GO:0031532\"|go:\"GO:0034329\"|go:\"GO:0051220\"|go:\"GO:0045184\"|go:\"GO:0007195\"|go:\"GO:0042177\"|go:\"GO:0043433\"|go:\"GO:0030168\"|go:\"GO:0002576\"|go:\"GO:0043123\"|go:\"GO:0042993\"|go:\"GO:0034394\"|go:\"GO:0050821\"|go:\"GO:0043113\"|ensembl:ENSG00000196924|ensembl:ENSG00000196924|reactome:REACT_604|ipi:IPI00302592|ipi:IPI00333541|rcsb pdb:2AAV|rcsb pdb:2BP3|rcsb pdb:2BRQ|rcsb pdb:2J3S|rcsb pdb:2JF1|rcsb pdb:2K3T|rcsb pdb:2K7P|rcsb pdb:2K7Q|rcsb pdb:2W0P|rcsb pdb:2WFN|rcsb pdb:3CNK|rcsb pdb:3HOC|rcsb pdb:3HOP|rcsb pdb:3HOR|rcsb pdb:3ISW|rcsb pdb:3RGH|go:\"GO:0031523\"|go:\"GO:0090307\"|uniprotkb:Q8NF52(secondary-ac)|intact:EBI-1103234(intact-secondary)|uniprotkb:Q5HY53(secondary-ac)|uniprotkb:Q5HY55(secondary-ac)|reactome:REACT_111155|go:\"GO:0017160\"\tgo:\"GO:0008305\"|go:\"GO:0042470\"|go:\"GO:0004872\"|go:\"GO:0007229\"|interpro:IPR013111|interpro:IPR015812|interpro:IPR014836|interpro:IPR002369|interpro:IPR012896|interpro:IPR003659|interpro:IPR016201|interpro:IPR002035|ipi:IPI00735136|go:\"GO:0007160\"|go:\"GO:0007275\"|go:\"GO:0005515\"\timex:IM-17229-1(imex-primary)\t-\t-\tcuration depth:imex curation|full coverage:Only protein-protein interactions|figure legend:Fig. 3,4,5,6,7 and 8.|isoform-comment:The human filamin consists of three isoforms. The protein included in this entry is Filamin A.\t-\t-\t2012/02/23\t2012/03/01\tcrc64:6C1A07041DF50142\tcrc64:2F6FEFCDF2C80457\tintact-crc:08C4486B755C70C0\ttrue\tnecessary binding region:2171-2647\tnecessary binding region:757-800|mutation decreasing interaction:764-764|mutation disrupting interaction:788-788|mutation disrupting interaction:788-788|mutation decreasing interaction:788-788|mutation decreasing interaction:797-797|mutation decreasing interaction:785-785|mutation decreasing interaction:786-786|mutation decreasing interaction:797-797\t-\t-\tpsi-mi:\"MI:0396\"(predetermined participant)\tpsi-mi:\"MI:0396\"(predetermined participant)";
            final Row row = new MitabCalimochoLineMapper().mapLine(interaction, 0);
            searchServer.add(row);
            searchServer.commit(true);
            final Long results = searchServer.countIndexedDocuments();
            assert (1 == results);
            searchServer.deleteAll();
            searchServer.commit(true);
            return true;
        } catch (Exception e) {
            log.error("failed to index a test document", e);
            throw new ExceptionInInitializerError(e);
        }
    }
private boolean indexDummyInteraction ( ) { try { searchServer . deleteAll ( ) ; searchServer . commit ( true ) ; assert ( 0 == searchServer . countIndexedDocuments ( ) ) ; String interaction = "uniprotkb:P21333\tuniprotkb:P07228\tintact:EBI-350432\tintact:EBI-5606437\tuniprotkb:FLNA(gene name)|uniprotkb:FLN(gene name synonym)|uniprotkb:FLN1(gene name synonym)|uniprotkb:Alpha-filamin(gene name synonym)|uniprotkb:Filamin-1(gene name synonym)|uniprotkb:Endothelial actin-binding protein(gene name synonym)|uniprotkb:Actin-binding protein 280(gene name synonym)|uniprotkb:Non-muscle filamin(gene name synonym)\tuniprotkb:ITGB1(gene name)|uniprotkb:CSAT antigen(gene name synonym)|uniprotkb:JG22 antigen(gene name synonym)|uniprotkb:RGD-receptor(gene name synonym)\tpsi-mi:\"MI:0018\"(two hybrid)\tLoo DT et al.(1998)\tpubmed:9722563|imex:IM-17229\ttaxid:4932(yeasx)|taxid:4932(\"Saccharomyces cerevisiae (Baker's yeast)\")|taxid:9606(human)|taxid:9606(Homo sapiens)\ttaxid:9031(chick)|taxid:9031(\"Gallus gallus (Chicken)\")\tpsi-mi:\"MI:0915\"(physical association)\tpsi-mi:\"MI:1124\"(mbinfo)\tintact:EBI-5606332\t-\t-\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0499\"(unspecified role)\tpsi-mi:\"MI:0498\"(prey)\tpsi-mi:\"MI:0496\"(bait)\tpsi-mi:\"MI:0326\"(protein)\tpsi-mi:\"MI:0326\"(protein)\trefseq:NP_001104026.1|refseq:NP_001447.2|interpro:IPR001589|interpro:IPR001715|interpro:IPR001298|interpro:IPR017868|interpro:IPR013783|interpro:IPR014756|go:\"GO:0015629\"|go:\"GO:0005938\"|go:\"GO:0005829\"|go:\"GO:0005576\"|go:\"GO:0005634\"|go:\"GO:0005886\"|go:\"GO:0051015\"|go:\"GO:0034988\"|go:\"GO:0001948\"|go:\"GO:0042803\"|go:\"GO:0048365\"|go:\"GO:0004871\"|go:\"GO:0008134\"|go:\"GO:0051764\"|go:\"GO:0031532\"|go:\"GO:0034329\"|go:\"GO:0051220\"|go:\"GO:0045184\"|go:\"GO:0007195\"|go:\"GO:0042177\"|go:\"GO:0043433\"|go:\"GO:0030168\"|go:\"GO:0002576\"|go:\"GO:0043123\"|go:\"GO:0042993\"|go:\"GO:0034394\"|go:\"GO:0050821\"|go:\"GO:0043113\"|ensembl:ENSG00000196924|ensembl:ENSG00000196924|reactome:REACT_604|ipi:IPI00302592|ipi:IPI00333541|rcsb pdb:2AAV|rcsb pdb:2BP3|rcsb pdb:2BRQ|rcsb pdb:2J3S|rcsb pdb:2JF1|rcsb pdb:2K3T|rcsb pdb:2K7P|rcsb pdb:2K7Q|rcsb pdb:2W0P|rcsb pdb:2WFN|rcsb pdb:3CNK|rcsb pdb:3HOC|rcsb pdb:3HOP|rcsb pdb:3HOR|rcsb pdb:3ISW|rcsb pdb:3RGH|go:\"GO:0031523\"|go:\"GO:0090307\"|uniprotkb:Q8NF52(secondary-ac)|intact:EBI-1103234(intact-secondary)|uniprotkb:Q5HY53(secondary-ac)|uniprotkb:Q5HY55(secondary-ac)|reactome:REACT_111155|go:\"GO:0017160\"\tgo:\"GO:0008305\"|go:\"GO:0042470\"|go:\"GO:0004872\"|go:\"GO:0007229\"|interpro:IPR013111|interpro:IPR015812|interpro:IPR014836|interpro:IPR002369|interpro:IPR012896|interpro:IPR003659|interpro:IPR016201|interpro:IPR002035|ipi:IPI00735136|go:\"GO:0007160\"|go:\"GO:0007275\"|go:\"GO:0005515\"\timex:IM-17229-1(imex-primary)\t-\t-\tcuration depth:imex curation|full coverage:Only protein-protein interactions|figure legend:Fig. 3,4,5,6,7 and 8.|isoform-comment:The human filamin consists of three isoforms. The protein included in this entry is Filamin A.\t-\t-\t2012/02/23\t2012/03/01\tcrc64:6C1A07041DF50142\tcrc64:2F6FEFCDF2C80457\tintact-crc:08C4486B755C70C0\ttrue\tnecessary binding region:2171-2647\tnecessary binding region:757-800|mutation decreasing interaction:764-764|mutation disrupting interaction:788-788|mutation disrupting interaction:788-788|mutation decreasing interaction:788-788|mutation decreasing interaction:797-797|mutation decreasing interaction:785-785|mutation decreasing interaction:786-786|mutation decreasing interaction:797-797\t-\t-\tpsi-mi:\"MI:0396\"(predetermined participant)\tpsi-mi:\"MI:0396\"(predetermined participant)" ; final Row row = new MitabCalimochoLineMapper ( ) . mapLine ( interaction , 0 ) ; searchServer . add ( row ) ; searchServer . commit ( true ) ; final Long results = searchServer . countIndexedDocuments ( ) ; assert ( 1 == results ) ; searchServer . deleteAll ( ) ; searchServer . commit ( true ) ; return true ; } catch ( Exception e ) { log . error ( "failed to index a test document" , e ) ; throw new ExceptionInInitializerError ( e ) ; } }
test run just to make sure solr accepts writes
 @return
test run just to make sure solr accepts writes @return