CustomQueryParser.java.patch

Patch fixing the exception - Michael Krkoska, 07/21/2009 10:58 AM

Download (678 Bytes)

 
src/main/java/com/soebes/supose/search/CustomQueryParser.java (working copy)
46 46
		super(field, analyzer);
47 47
	}
48 48

  
49
	@Override
50
	protected Query getFuzzyQuery(String field, String term, float minSimilarity)
51
		throws ParseException {
52
		throw new ParseException("Fuzzy queries not allowed");
53
	}
54

  
55 49
	/* (non-Javadoc)
56 50
	 * @see org.apache.lucene.queryParser.QueryParser#getFieldQuery(java.lang.String, java.lang.String)
57 51
	 */