test_class.declarator: helper = null
test_class.modifier: static
test_class.original_string: static LuceneHelper helper = null;
test_class.type: LuceneHelper
test_class.var_name: helper
test_class.declarator: luceneDir = Files.createTempDir()
test_class.modifier: static
test_class.original_string: static File luceneDir = Files.createTempDir();
test_class.type: File
test_class.var_name: luceneDir
test_class.file: dexter-core/src/test/java/it/cnr/isti/hpc/dexter/lucene/LuceneHelperTest.java
test_class.identifier: LuceneHelperTest
test_case.body: @Test
  	public void testGetArticle() {
  		assertEquals("diego ceccarelli test test1 test2 and", helper
  				.getArticle(1).getText().trim());
  		assertEquals("ceccarelli test test1 test2 and", helper.getArticle(2)
  				.getText().trim());
  		assertEquals("pippo pippo pippo pippos", helper.getArticle(6).getText()
  				.trim());
  	}
test_case.class_method_signature: LuceneHelperTest.testGetArticle()
test_case.full_signature: @Test public void testGetArticle()
test_case.identifier: testGetArticle
test_case.invocations: assertEquals trim getText getArticle assertEquals trim getText getArticle assertEquals trim getText getArticle
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetArticle()
focal_class.declarator: LUCENE_ARTICLE_DEFAULT_FIELD = "content"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_DEFAULT_FIELD = "content";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_DEFAULT_FIELD
focal_class.declarator: LUCENE_ARTICLE_ID = "wiki-id"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_ID = "wiki-id";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_ID
focal_class.declarator: LUCENE_ARTICLE_WIKI_TITLE = "wiki-title"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_WIKI_TITLE = "wiki-title";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_WIKI_TITLE
focal_class.declarator: LUCENE_ARTICLE_TITLE = "title"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_TITLE = "title";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_TITLE
focal_class.declarator: LUCENE_ARTICLE_TYPE = "type"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_TYPE = "type";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_TYPE
focal_class.declarator: LUCENE_ARTICLE_LIST = "list"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_LIST = "list";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_LIST
focal_class.declarator: LUCENE_ARTICLE_INFOBOX = "infobox"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_INFOBOX = "infobox";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_INFOBOX
focal_class.declarator: LUCENE_ARTICLE_EMPH = "emph"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_EMPH = "emph";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_EMPH
focal_class.declarator: LUCENE_ARTICLE_SECTIONS = "sections"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_SECTIONS = "sections";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_SECTIONS
focal_class.declarator: LUCENE_ARTICLE_DESCRIPTIONS = "desc"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_DESCRIPTIONS = "desc";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_DESCRIPTIONS
focal_class.declarator: LUCENE_ARTICLE_LINKS = "link"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_LINKS = "link";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_LINKS
focal_class.declarator: LUCENE_ARTICLE_CONTENT = "content"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_CONTENT = "content";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_CONTENT
focal_class.declarator: LUCENE_ARTICLE_SUMMARY = "summary"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String LUCENE_ARTICLE_SUMMARY = "summary";
focal_class.type: String
focal_class.var_name: LUCENE_ARTICLE_SUMMARY
focal_class.declarator: logger = LoggerFactory
  			.getLogger(LuceneHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory
  			.getLogger(LuceneHelper.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ANALYZER = new StandardAnalyzer(
  			Version.LUCENE_41, CharArraySet.EMPTY_SET)
focal_class.modifier: protected final
focal_class.original_string: protected final StandardAnalyzer ANALYZER = new StandardAnalyzer(
  			Version.LUCENE_41, CharArraySet.EMPTY_SET);
focal_class.type: StandardAnalyzer
focal_class.var_name: ANALYZER
focal_class.declarator: dexterHelper
focal_class.modifier: protected static
focal_class.original_string: protected static LuceneHelper dexterHelper;
focal_class.type: LuceneHelper
focal_class.var_name: dexterHelper
focal_class.declarator: index
focal_class.modifier: protected
focal_class.original_string: protected Directory index;
focal_class.type: Directory
focal_class.var_name: index
focal_class.declarator: writer
focal_class.modifier: protected
focal_class.original_string: protected IndexWriter writer;
focal_class.type: IndexWriter
focal_class.var_name: writer
focal_class.declarator: searcher
focal_class.modifier: protected
focal_class.original_string: protected IndexSearcher searcher;
focal_class.type: IndexSearcher
focal_class.var_name: searcher
focal_class.declarator: config
focal_class.modifier: protected final
focal_class.original_string: protected final IndexWriterConfig config;
focal_class.type: IndexWriterConfig
focal_class.var_name: config
focal_class.declarator: summarizer
focal_class.modifier: protected final
focal_class.original_string: protected final ArticleSummarizer summarizer;
focal_class.type: ArticleSummarizer
focal_class.var_name: summarizer
focal_class.declarator: params = DexterParams.getInstance()
focal_class.modifier: private static
focal_class.original_string: private static DexterParams params = DexterParams.getInstance();
focal_class.type: DexterParams
focal_class.var_name: params
focal_class.declarator: collectionSize
focal_class.modifier: protected final
focal_class.original_string: protected final int collectionSize;
focal_class.type: int
focal_class.var_name: collectionSize
focal_class.declarator: STORE_TERM_VECTORS = new FieldType()
focal_class.modifier: protected static final
focal_class.original_string: protected static final FieldType STORE_TERM_VECTORS = new FieldType();
focal_class.type: FieldType
focal_class.var_name: STORE_TERM_VECTORS
focal_class.declarator: STORE_TERM_VECTORS_NOT_STORED = new FieldType()
focal_class.modifier: protected static final
focal_class.original_string: protected static final FieldType STORE_TERM_VECTORS_NOT_STORED = new FieldType();
focal_class.type: FieldType
focal_class.var_name: STORE_TERM_VECTORS_NOT_STORED
focal_class.declarator: cleaner = new SpotManager()
focal_class.modifier: private static
focal_class.original_string: private static SpotManager cleaner = new SpotManager();
focal_class.type: SpotManager
focal_class.var_name: cleaner
focal_class.declarator: wikiIdtToLuceneIdSerialization
focal_class.modifier: protected final
focal_class.original_string: protected final File wikiIdtToLuceneIdSerialization;
focal_class.type: File
focal_class.var_name: wikiIdtToLuceneIdSerialization
focal_class.declarator: wikiIdToLuceneId
focal_class.modifier: protected static
focal_class.original_string: protected static Map<Integer, Integer> wikiIdToLuceneId;
focal_class.type: Map<Integer, Integer>
focal_class.var_name: wikiIdToLuceneId
focal_class.file: dexter-core/src/main/java/it/cnr/isti/hpc/dexter/lucene/LuceneHelper.java
focal_class.identifier: LuceneHelper
focal_class.class_method_signature: LuceneHelper.LuceneHelper(File wikiIdtToLuceneIdSerialization, File indexPath)
focal_class.full_signature: protected  LuceneHelper(File wikiIdtToLuceneIdSerialization, File indexPath)
focal_class.identifier: LuceneHelper
focal_class.modifiers: protected
focal_class.parameters: (File wikiIdtToLuceneIdSerialization, File indexPath)
focal_class.signature:  LuceneHelper(File wikiIdtToLuceneIdSerialization, File indexPath)
focal_class.class_method_signature: LuceneHelper.getReader()
focal_class.full_signature: protected IndexReader getReader()
focal_class.identifier: getReader
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IndexReader
focal_class.signature: IndexReader getReader()
focal_class.class_method_signature: LuceneHelper.getSearcher()
focal_class.full_signature: protected IndexSearcher getSearcher()
focal_class.identifier: getSearcher
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IndexSearcher
focal_class.signature: IndexSearcher getSearcher()
focal_class.class_method_signature: LuceneHelper.hasDexterLuceneIndex()
focal_class.full_signature: public static boolean hasDexterLuceneIndex()
focal_class.identifier: hasDexterLuceneIndex
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasDexterLuceneIndex()
focal_class.class_method_signature: LuceneHelper.getDexterLuceneHelper()
focal_class.full_signature: public static LuceneHelper getDexterLuceneHelper()
focal_class.identifier: getDexterLuceneHelper
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: LuceneHelper
focal_class.signature: LuceneHelper getDexterLuceneHelper()
focal_class.class_method_signature: LuceneHelper.parseWikiIdToLuceneId()
focal_class.full_signature: protected void parseWikiIdToLuceneId()
focal_class.identifier: parseWikiIdToLuceneId
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void parseWikiIdToLuceneId()
focal_class.class_method_signature: LuceneHelper.dumpWikiIdToLuceneId()
focal_class.full_signature: protected void dumpWikiIdToLuceneId()
focal_class.identifier: dumpWikiIdToLuceneId
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dumpWikiIdToLuceneId()
focal_class.class_method_signature: LuceneHelper.loadWikiIdToLuceneId()
focal_class.full_signature: @SuppressWarnings("unchecked") public void loadWikiIdToLuceneId()
focal_class.identifier: loadWikiIdToLuceneId
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadWikiIdToLuceneId()
focal_class.class_method_signature: LuceneHelper.getLuceneId(int wikiId)
focal_class.full_signature: protected int getLuceneId(int wikiId)
focal_class.identifier: getLuceneId
focal_class.modifiers: protected
focal_class.parameters: (int wikiId)
focal_class.return: int
focal_class.signature: int getLuceneId(int wikiId)
focal_class.class_method_signature: LuceneHelper.getSimilarity(Query query, int wikiId)
focal_class.full_signature: public float getSimilarity(Query query, int wikiId)
focal_class.identifier: getSimilarity
focal_class.modifiers: public
focal_class.parameters: (Query query, int wikiId)
focal_class.return: float
focal_class.signature: float getSimilarity(Query query, int wikiId)
focal_class.class_method_signature: LuceneHelper.getCosineSimilarity(int x, int y)
focal_class.full_signature: public double getCosineSimilarity(int x, int y)
focal_class.identifier: getCosineSimilarity
focal_class.modifiers: public
focal_class.parameters: (int x, int y)
focal_class.return: double
focal_class.signature: double getCosineSimilarity(int x, int y)
focal_class.class_method_signature: LuceneHelper.getCosineSimilarity(int x, int y, String field)
focal_class.full_signature: public double getCosineSimilarity(int x, int y, String field)
focal_class.identifier: getCosineSimilarity
focal_class.modifiers: public
focal_class.parameters: (int x, int y, String field)
focal_class.return: double
focal_class.signature: double getCosineSimilarity(int x, int y, String field)
focal_class.class_method_signature: LuceneHelper.tfidfVector(Map<String, Double> tfidf,
  			Map<String, Integer> freq, String field)
focal_class.full_signature: private double tfidfVector(Map<String, Double> tfidf,
  			Map<String, Integer> freq, String field)
focal_class.identifier: tfidfVector
focal_class.modifiers: private
focal_class.parameters: (Map<String, Double> tfidf,
  			Map<String, Integer> freq, String field)
focal_class.return: double
focal_class.signature: double tfidfVector(Map<String, Double> tfidf,
  			Map<String, Integer> freq, String field)
focal_class.class_method_signature: LuceneHelper.toLuceneDocument(Article a)
focal_class.full_signature: private Document toLuceneDocument(Article a)
focal_class.identifier: toLuceneDocument
focal_class.modifiers: private
focal_class.parameters: (Article a)
focal_class.return: Document
focal_class.signature: Document toLuceneDocument(Article a)
focal_class.class_method_signature: LuceneHelper.addDocument(Article a)
focal_class.full_signature: public void addDocument(Article a)
focal_class.identifier: addDocument
focal_class.modifiers: public
focal_class.parameters: (Article a)
focal_class.return: void
focal_class.signature: void addDocument(Article a)
focal_class.class_method_signature: LuceneHelper.addDocument(int id, String content)
focal_class.full_signature: protected void addDocument(int id, String content)
focal_class.identifier: addDocument
focal_class.modifiers: protected
focal_class.parameters: (int id, String content)
focal_class.return: void
focal_class.signature: void addDocument(int id, String content)
focal_class.class_method_signature: LuceneHelper.clearIndex()
focal_class.full_signature: public void clearIndex()
focal_class.identifier: clearIndex
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearIndex()
focal_class.class_method_signature: LuceneHelper.commit()
focal_class.full_signature: public void commit()
focal_class.identifier: commit
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void commit()
focal_class.class_method_signature: LuceneHelper.getDoc(int wikiId)
focal_class.full_signature: private Document getDoc(int wikiId)
focal_class.identifier: getDoc
focal_class.modifiers: private
focal_class.parameters: (int wikiId)
focal_class.return: Document
focal_class.signature: Document getDoc(int wikiId)
focal_class.class_method_signature: LuceneHelper.getFreq(String query, String field)
focal_class.full_signature: public int getFreq(String query, String field)
focal_class.identifier: getFreq
focal_class.modifiers: public
focal_class.parameters: (String query, String field)
focal_class.return: int
focal_class.signature: int getFreq(String query, String field)
focal_class.class_method_signature: LuceneHelper.getFreq(String query)
focal_class.full_signature: public int getFreq(String query)
focal_class.identifier: getFreq
focal_class.modifiers: public
focal_class.parameters: (String query)
focal_class.return: int
focal_class.signature: int getFreq(String query)
focal_class.class_method_signature: LuceneHelper.getFreqFromSummary(String query)
focal_class.full_signature: public int getFreqFromSummary(String query)
focal_class.identifier: getFreqFromSummary
focal_class.modifiers: public
focal_class.parameters: (String query)
focal_class.return: int
focal_class.signature: int getFreqFromSummary(String query)
focal_class.class_method_signature: LuceneHelper.getWriter()
focal_class.full_signature: private IndexWriter getWriter()
focal_class.identifier: getWriter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: IndexWriter
focal_class.signature: IndexWriter getWriter()
focal_class.class_method_signature: LuceneHelper.numDocs()
focal_class.full_signature: public int numDocs()
focal_class.identifier: numDocs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int numDocs()
focal_class.class_method_signature: LuceneHelper.closeWriter()
focal_class.full_signature: public void closeWriter()
focal_class.identifier: closeWriter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeWriter()
focal_class.class_method_signature: LuceneHelper.query(String query, String field, int n)
focal_class.full_signature: public List<Integer> query(String query, String field, int n)
focal_class.identifier: query
focal_class.modifiers: public
focal_class.parameters: (String query, String field, int n)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> query(String query, String field, int n)
focal_class.class_method_signature: LuceneHelper.query(String query, String field)
focal_class.full_signature: public List<Integer> query(String query, String field)
focal_class.identifier: query
focal_class.modifiers: public
focal_class.parameters: (String query, String field)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> query(String query, String field)
focal_class.class_method_signature: LuceneHelper.query(String query)
focal_class.full_signature: public List<Integer> query(String query)
focal_class.identifier: query
focal_class.modifiers: public
focal_class.parameters: (String query)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> query(String query)
focal_class.class_method_signature: LuceneHelper.getArticle(int id)
focal_class.full_signature: public Article getArticle(int id)
focal_class.identifier: getArticle
focal_class.modifiers: public
focal_class.parameters: (int id)
focal_class.return: Article
focal_class.signature: Article getArticle(int id)
focal_class.class_method_signature: LuceneHelper.getArticleSummary(int id)
focal_class.full_signature: public Article getArticleSummary(int id)
focal_class.identifier: getArticleSummary
focal_class.modifiers: public
focal_class.parameters: (int id)
focal_class.return: Article
focal_class.signature: Article getArticleSummary(int id)
focal_class.class_method_signature: LuceneHelper.getWikiId(int luceneId)
focal_class.full_signature: public int getWikiId(int luceneId)
focal_class.identifier: getWikiId
focal_class.modifiers: public
focal_class.parameters: (int luceneId)
focal_class.return: int
focal_class.signature: int getWikiId(int luceneId)
focal_class.class_method_signature: LuceneHelper.rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context, String field)
focal_class.full_signature: @SuppressWarnings("null") public void rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context, String field)
focal_class.identifier: rankBySimilarity
focal_class.modifiers: @SuppressWarnings("null") public
focal_class.parameters: (SpotMatch spot, EntityMatchList eml,
  			String context, String field)
focal_class.return: void
focal_class.signature: void rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context, String field)
focal_class.class_method_signature: LuceneHelper.rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context)
focal_class.full_signature: public void rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context)
focal_class.identifier: rankBySimilarity
focal_class.modifiers: public
focal_class.parameters: (SpotMatch spot, EntityMatchList eml,
  			String context)
focal_class.return: void
focal_class.signature: void rankBySimilarity(SpotMatch spot, EntityMatchList eml,
  			String context)
focal_method.body: public Article getArticle(int id) {
  		Article a = new Article();
  		a.setWikiId(id);
  
  		Document d = getDoc(id);
  		if (d != null) {
  			List<String> paragraphs = new ArrayList<String>();
  			paragraphs.add(d.getField(LUCENE_ARTICLE_CONTENT).stringValue());
  			a.setTitle(d.getField(LUCENE_ARTICLE_TITLE).stringValue());
  			a.setWikiTitle(d.getField(LUCENE_ARTICLE_WIKI_TITLE).stringValue());
  			a.setSummary(d.getField(LUCENE_ARTICLE_SUMMARY).stringValue());
  
  			a.setParagraphs(paragraphs);
  		}
  		//
  		return a;
  
  	}
focal_method.class_method_signature: LuceneHelper.getArticle(int id)
focal_method.full_signature: public Article getArticle(int id)
focal_method.identifier: getArticle
focal_method.invocations: setWikiId getDoc add stringValue getField setTitle stringValue getField setWikiTitle stringValue getField setSummary stringValue getField setParagraphs
focal_method.modifiers: public
focal_method.parameters: (int id)
focal_method.return: Article
focal_method.signature: Article getArticle(int id)