You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2016/09/09 17:48:23 UTC

[jira] [Updated] (UIMA-1564) Add test search against index to LuceneCASIndexerTest.testIndexOneDocument test

     [ https://issues.apache.org/jira/browse/UIMA-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho updated UIMA-1564:
---------------------------------------------
    Labels: Stale  (was: )

This issue is marked as "stale" due to inactivity for 5 years or longer. If no further activity is detected on this issue, it is scheduled be closed as 'unresolved' in 3 months time from now (Dec 2016).

> Add test search against index to LuceneCASIndexerTest.testIndexOneDocument test 
> --------------------------------------------------------------------------------
>
>                 Key: UIMA-1564
>                 URL: https://issues.apache.org/jira/browse/UIMA-1564
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Sandbox-Lucas
>    Affects Versions: 2.3S
>            Reporter: Joern Kottmann
>            Assignee: Rico Landefeld
>            Priority: Minor
>              Labels: Stale
>
> The test should index one document and then do a test search against the freshly created index. After modifying the lucas.xml in a way its indexing the DocumentAnnotation I was unable to do a test search with the following code:
>  FSDirectory directory = (FSDirectory) luceneCASIndexer.getIndexWriter().getDirectory();
>  String path = directory.getFile().getPath();
>     
>  // Make sure index gets written to disk ...
>  analysisEngine.destroy();
>     
>  // Open index and do a test search against it.
>  IndexSearcher searcher = new IndexSearcher(path);
>     
> QueryParser parser = new QueryParser("text", new SimpleAnalyzer());
> Query query = parser.parse("test document");
>     
> searcher.search(query, new HitCollector() {
>       
>       @Override
>       public void collect(int doc, float score) {
>         ...
>       }
>     });
> Can you please have a look Rico ?
> In the end it would be nice if all three kinds of text sources are tested, covered text, feature values, referenced feature values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)