Skip to content

Commit

Permalink
make query parameter SUMMARY instead of SUMMARY_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
austin007008 committed Dec 6, 2024
1 parent c459717 commit 9137fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class QueryFunctions {
public static final String UNIQUE_FUNCTION = "unique";
public static final String GROUPBY_FUNCTION = "groupby";
public static final String EXCERPT_FIELDS_FUNCTION = "excerpt_fields";
public static final String SUMMARY_FUNCTION = "summary_size";
public static final String SUMMARY_FUNCTION = "summary";
public static final String LENIENT_FIELDS_FUNCTION = "lenient";
public static final String STRICT_FIELDS_FUNCTION = "strict";
public static final String MATCH_REGEX = "matchRegex";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void testWithOnly() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(VIEWS:CONTENT/SIZE:50/ONLY)";
String queryString = "QUOTE:(farther) #SUMMARY(VIEWS:CONTENT/SIZE:50/ONLY)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(
Expand All @@ -231,7 +231,7 @@ public void testWithNoArg() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE()";
String queryString = "QUOTE:(farther) #SUMMARY()";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(Set.of(
Expand All @@ -247,7 +247,7 @@ public void testWithoutOnly() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(SIZE:50/VIEWS:CONTENT)";
String queryString = "QUOTE:(farther) #SUMMARY(SIZE:50/VIEWS:CONTENT)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(
Expand All @@ -263,7 +263,7 @@ public void testSize() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(SIZE:50)";
String queryString = "QUOTE:(farther) #SUMMARY(SIZE:50)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(
Expand All @@ -279,7 +279,7 @@ public void testOverMaxSize() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(SIZE:90000)";
String queryString = "QUOTE:(farther) #SUMMARY(SIZE:90000)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(Set.of(
Expand All @@ -295,7 +295,7 @@ public void testNegativeSize() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(SIZE:-50)";
String queryString = "QUOTE:(farther) #SUMMARY(SIZE:-50)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(Set.of("CONTENT_SUMMARY:CONTENT: Y: : [] 9223372036854775807 false"));
Expand All @@ -310,7 +310,7 @@ public void testNoContentFound() throws Exception {
extraParameters.put("return.fields", "CONTENT_SUMMARY");
extraParameters.put("query.syntax", "LUCENE");

String queryString = "QUOTE:(farther) #SUMMARY_SIZE(SIZE:50/ONLY/VIEWS:CANTFINDME,ORME)";
String queryString = "QUOTE:(farther) #SUMMARY(SIZE:50/ONLY/VIEWS:CANTFINDME,ORME)";

// not sure why the timestamp and delete flag are present
Set<String> goodResults = new HashSet<>(Set.of("CONTENT_SUMMARY:NO CONTENT FOUND TO SUMMARIZE"));
Expand Down

0 comments on commit 9137fb9

Please sign in to comment.