mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-06 21:05:50 +08:00
Added some commented code that was discussed on how to improve Luja
This commit is contained in:
parent
af8f5068c2
commit
dcff54f49d
@ -61,6 +61,7 @@ public class LuceneSerializer {
|
||||
|
||||
private final boolean splitTerms;
|
||||
|
||||
//TODO nämä pitää olla polkukohtaisia
|
||||
public LuceneSerializer(boolean lowerCase, boolean splitTerms) {
|
||||
this.lowerCase = lowerCase;
|
||||
this.splitTerms = splitTerms;
|
||||
@ -148,6 +149,10 @@ public class LuceneSerializer {
|
||||
protected Query eq(Operation<?> operation, QueryMetadata metadata) {
|
||||
verifyArguments(operation);
|
||||
String field = toField(operation.getArg(0));
|
||||
|
||||
//TODO Implement this
|
||||
//boolean tokenized = isTokenized(operation.getArg(0));
|
||||
|
||||
if (Number.class.isAssignableFrom(operation.getArg(1).getType())) {
|
||||
return new TermQuery(new Term(field, convertNumber(((Constant<Number>) operation
|
||||
.getArg(1)).getConstant())));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user