Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java
index 324b8e122..9c4176876 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/QueryWordsExactPhrase.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -19,10 +19,10 @@ import org.apache.lucene.search.*;
* Represents a quoted token in user search query words
*/
public class QueryWordsExactPhrase extends QueryWordsToken {
- private List<String> words;
+ private List words;
public QueryWordsExactPhrase() {
super(QueryWordsToken.EXACT_PHRASE, ""); //$NON-NLS-1$
- words = new ArrayList<String>();
+ words = new ArrayList();
}
public void addWord(String word) {
words.add(word);
@@ -31,7 +31,7 @@ public class QueryWordsExactPhrase extends QueryWordsToken {
else
value += " " + word; //$NON-NLS-1$
}
- public List<String> getWords() {
+ public List getWords() {
return words;
}
/**
@@ -39,8 +39,8 @@ public class QueryWordsExactPhrase extends QueryWordsToken {
*/
public Query createLuceneQuery(String field, float boost) {
PhraseQuery q = new PhraseQuery();
- for (Iterator<String> it = getWords().iterator(); it.hasNext();) {
- String word = it.next();
+ for (Iterator it = getWords().iterator(); it.hasNext();) {
+ String word = (String) it.next();
Term t = new Term("exact_" + field, word); //$NON-NLS-1$
q.add(t);
q.setBoost(boost);

Back to the top