summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-03-16 09:43:42 +0000
committerGeir Storli <geirst@yahoo-inc.com>2017-03-16 09:43:42 +0000
commite0c9d6e43c1d4b62a1eb8fbb73b9e9c87938e85f (patch)
treeb11ae0b270a69ca9e1d035606f01118373298ab5 /searchcommon
parent4f143fabbfc927726a6284712ae00f956b7a0319 (diff)
Simplify ISearchContext.
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/i_search_context.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
index eb5ba68d6ee..936545210f4 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
@@ -3,6 +3,7 @@
#pragma once
#include <vespa/searchcommon/common/range.h>
+#include <vespa/vespalib/stllike/string.h>
namespace search {
@@ -17,8 +18,6 @@ class QueryTermBase;
namespace attribute {
-class IAttributeVector;
-
class ISearchContext {
public:
using UP = std::unique_ptr<ISearchContext>;
@@ -40,20 +39,6 @@ public:
virtual std::unique_ptr<queryeval::SearchIterator>
createIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
- /**
- * Creates an attribute search iterator associated with this
- * search context. Postings lists are not used.
- *
- * @return attribute search iterator
- *
- * @param matchData the attribute match data used when
- * unpacking data for a hit
- *
- * @param strict whether the iterator should be strict or not
- **/
- virtual std::unique_ptr<queryeval::SearchIterator>
- createFilterIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
-
/*
* Create temporary posting lists.
* Should be called before createIterator() is called.
@@ -63,7 +48,7 @@ public:
virtual bool valid() const = 0;
virtual Int64Range getAsIntegerTerm() const = 0;
virtual const QueryTermBase &queryTerm() const = 0;
- virtual const IAttributeVector &attribute() const = 0;
+ virtual const vespalib::string &attributeName() const = 0;
};