From 548c41a40db8016a51f4b31b4fc275404a07cd44 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 26 Nov 2002 21:36:29 +0000 Subject: [PATCH] john learns about java's non-intuitive constructor inheritance rules --- source/mircoders/search/KeywordSearchTerm.java | 5 +++++ source/mircoders/search/TextSearchTerm.java | 4 ++++ source/mircoders/search/UnIndexedSearchTerm.java | 5 +++++ source/mircoders/search/UnStoredSearchTerm.java | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/source/mircoders/search/KeywordSearchTerm.java b/source/mircoders/search/KeywordSearchTerm.java index 4ed03c1f..080c037b 100755 --- a/source/mircoders/search/KeywordSearchTerm.java +++ b/source/mircoders/search/KeywordSearchTerm.java @@ -45,6 +45,11 @@ import freemarker.template.*; public class KeywordSearchTerm extends SearchTerm{ + public KeywordSearchTerm(String anEntityPart,String aParamName,String aMatchField,String aDataField, String aTemplateVariable){ + super(anEntityPart,aParamName,aMatchField,aDataField,aTemplateVariable); + } + + public void index(Document doc, Entity entity){ doc.add(Field.Keyword(matchField,entity.getValue(partOfEntity))); } diff --git a/source/mircoders/search/TextSearchTerm.java b/source/mircoders/search/TextSearchTerm.java index fba14bad..275d4e8b 100755 --- a/source/mircoders/search/TextSearchTerm.java +++ b/source/mircoders/search/TextSearchTerm.java @@ -45,6 +45,10 @@ import freemarker.template.*; public class TextSearchTerm extends SearchTerm{ + public TextSearchTerm(String anEntityPart,String aParamName,String aMatchField,String aDataField, String aTemplateVariable){ + super(anEntityPart,aParamName,aMatchField,aDataField,aTemplateVariable); + } + public void index(Document doc, Entity entity){ doc.add(Field.Text(matchField,entity.getValue(partOfEntity))); } diff --git a/source/mircoders/search/UnIndexedSearchTerm.java b/source/mircoders/search/UnIndexedSearchTerm.java index 17da6381..07da68c1 100755 --- a/source/mircoders/search/UnIndexedSearchTerm.java +++ b/source/mircoders/search/UnIndexedSearchTerm.java @@ -44,7 +44,12 @@ import freemarker.template.*; public class UnIndexedSearchTerm extends SearchTerm{ + + public UnIndexedSearchTerm(String anEntityPart,String aParamName,String aMatchField,String aDataField, String aTemplateVariable){ + super(anEntityPart,aParamName,aMatchField,aDataField,aTemplateVariable); + } + public void index(Document doc, Entity entity){ doc.add(Field.Text(dataField,entity.getValue(partOfEntity))); } diff --git a/source/mircoders/search/UnStoredSearchTerm.java b/source/mircoders/search/UnStoredSearchTerm.java index 9978432d..6cfcc5fb 100755 --- a/source/mircoders/search/UnStoredSearchTerm.java +++ b/source/mircoders/search/UnStoredSearchTerm.java @@ -45,6 +45,11 @@ import freemarker.template.*; public class UnStoredSearchTerm extends SearchTerm{ + public UnStoredSearchTerm(String anEntityPart,String aParamName,String aMatchField,String aDataField, String aTemplateVariable){ + super(anEntityPart,aParamName,aMatchField,aDataField,aTemplateVariable); + } + + public void index(Document doc, Entity entity){ doc.add(Field.UnStored(matchField,entity.getValue(partOfEntity))); } -- 2.11.0