Commit be148599 authored by reuschling's avatar reuschling
Browse files

disabled term relevances collect in SimpleIndexInterface


git-svn-id: https://dynaq.opendfki.de/repos/application/trunk@1056 8b50620d-ddf8-0310-9f5d-8b2f31fd9ac4
parent 0cec5862
......@@ -34,7 +34,7 @@
<repositories>
<repository>
<id>artifactory2-libs-releases-local</id>
<id>artifactory-libs-releases-local</id>
<url>http://www.dfki.uni-kl.de/artifactory/libs-releases-local</url>
<releases>
<enabled>true</enabled>
......@@ -44,7 +44,7 @@
</snapshots>
</repository>
<repository>
<id>artifactory2-libs-releases</id>
<id>artifactory-libs-releases</id>
<url>http://www.dfki.uni-kl.de/artifactory/libs-releases</url>
<releases>
<enabled>true</enabled>
......@@ -54,7 +54,7 @@
</snapshots>
</repository>
<repository>
<id>artifactory2-libs-snapshots-local</id>
<id>artifactory-libs-snapshots-local</id>
<url>http://www.dfki.uni-kl.de/artifactory/libs-snapshots-local</url>
<releases>
<enabled>false</enabled>
......@@ -69,11 +69,11 @@
<distributionManagement>
<repository>
<id>artifactory2-libs-releases-local</id>
<id>artifactory-libs-releases-local</id>
<url>http://www.dfki.uni-kl.de/artifactory/libs-releases-local</url>
</repository>
<snapshotRepository>
<id>artifactory2-libs-snapshots-local</id>
<id>artifactory-libs-snapshots-local</id>
<url>http://www.dfki.uni-kl.de/artifactory/libs-snapshots-local</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
......@@ -108,7 +108,6 @@
<dependency>
<groupId>de.dfki.km</groupId>
<artifactId>leechcrawler</artifactId>
<!-- <version>1.7</version> -->
<version>1.8</version>
<exclusions>
<exclusion>
......@@ -386,7 +385,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.2.2</version>
<version>1.10</version>
<configuration>
<assembleDirectory>${project.build.directory}/assembleDir</assembleDirectory>
<extraJvmArguments>-Xmx2G</extraJvmArguments>
......
......@@ -250,6 +250,8 @@ public class DynaQResultList implements Iterable<ScoredDynaQDocument>
protected TopDocs m_luceneTopDocs = null;
public boolean termRelevanceExplanations = true;
/**
......@@ -749,7 +751,7 @@ public class DynaQResultList implements Iterable<ScoredDynaQDocument>
// wir schalten das injizierte Flag für die Termrelevanzen scharf
TermRelevancesCollector.enableTermRelevanceExplanations(query4All);
if(termRelevanceExplanations) TermRelevancesCollector.enableTermRelevanceExplanations(query4All);
......
......@@ -68,7 +68,8 @@ import de.dfki.inquisition.text.StringUtils;
/**
* This is a simple interface offering rudimentary methods for index access, such as inserting a document, reading out an document, and performing simple searches. This
* is for people who don't like to use more or less complex interfaces - and such don't need the flexibility of the standard DynaQ techniques.
* is for people who don't like to use more or less complex interfaces - and such don't need the flexibility of the standard DynaQ techniques. Code weaving modification
* regarding term relevance collections are disabled in this class.
*
*
* @author Christian Reuschling, Dipl.Ing.(BA)
......@@ -1655,6 +1656,8 @@ public class SimpleIndexInterface
resultList = new DynaQResultList(dynaqQuery, m_luceneIndexSet);
else
resultList = new DynaQResultList(dynaqQuery, m_luceneIndexSet, iTopDocs2Collect);
resultList.termRelevanceExplanations = false;
if(!StringUtils.nullOrWhitespace(strFieldName4Sorting) && bReverse != null)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment