SearchForHits constructor

const SearchForHits({
  1. String? params,
  2. String? query,
  3. String? similarQuery,
  4. String? filters,
  5. dynamic facetFilters,
  6. dynamic optionalFilters,
  7. dynamic numericFilters,
  8. dynamic tagFilters,
  9. bool? sumOrFiltersScores,
  10. List<String>? restrictSearchableAttributes,
  11. List<String>? facets,
  12. bool? facetingAfterDistinct,
  13. int? page,
  14. int? offset,
  15. int? length,
  16. String? aroundLatLng,
  17. bool? aroundLatLngViaIP,
  18. dynamic aroundRadius,
  19. dynamic aroundPrecision,
  20. int? minimumAroundRadius,
  21. dynamic insideBoundingBox,
  22. List<List<double>>? insidePolygon,
  23. List<SupportedLanguage>? naturalLanguages,
  24. List<String>? ruleContexts,
  25. int? personalizationImpact,
  26. String? userToken,
  27. bool? getRankingInfo,
  28. bool? synonyms,
  29. bool? clickAnalytics,
  30. bool? analytics,
  31. List<String>? analyticsTags,
  32. bool? percentileComputation,
  33. bool? enableABTest,
  34. List<String>? attributesToRetrieve,
  35. List<String>? ranking,
  36. List<String>? customRanking,
  37. int? relevancyStrictness,
  38. List<String>? attributesToHighlight,
  39. List<String>? attributesToSnippet,
  40. String? highlightPreTag,
  41. String? highlightPostTag,
  42. String? snippetEllipsisText,
  43. bool? restrictHighlightAndSnippetArrays,
  44. int? hitsPerPage,
  45. int? minWordSizefor1Typo,
  46. int? minWordSizefor2Typos,
  47. dynamic typoTolerance,
  48. bool? allowTyposOnNumericTokens,
  49. List<String>? disableTypoToleranceOnAttributes,
  50. dynamic ignorePlurals,
  51. dynamic removeStopWords,
  52. String? keepDiacriticsOnCharacters,
  53. List<SupportedLanguage>? queryLanguages,
  54. bool? decompoundQuery,
  55. bool? enableRules,
  56. bool? enablePersonalization,
  57. QueryType? queryType,
  58. RemoveWordsIfNoResults? removeWordsIfNoResults,
  59. Mode? mode,
  60. SemanticSearch? semanticSearch,
  61. bool? advancedSyntax,
  62. dynamic optionalWords,
  63. List<String>? disableExactOnAttributes,
  64. ExactOnSingleWordQuery? exactOnSingleWordQuery,
  65. List<AlternativesAsExact>? alternativesAsExact,
  66. List<AdvancedSyntaxFeatures>? advancedSyntaxFeatures,
  67. dynamic distinct,
  68. bool? replaceSynonymsInHighlight,
  69. int? minProximity,
  70. List<String>? responseFields,
  71. int? maxValuesPerFacet,
  72. String? sortFacetValuesBy,
  73. bool? attributeCriteriaComputedByMinProximity,
  74. RenderingContent? renderingContent,
  75. bool? enableReRanking,
  76. dynamic reRankingApplyFilter,
  77. required String indexName,
  78. SearchTypeDefault? type,
})

Returns a new SearchForHits instance.

Implementation

const SearchForHits({
  this.params,
  this.query,
  this.similarQuery,
  this.filters,
  this.facetFilters,
  this.optionalFilters,
  this.numericFilters,
  this.tagFilters,
  this.sumOrFiltersScores,
  this.restrictSearchableAttributes,
  this.facets,
  this.facetingAfterDistinct,
  this.page,
  this.offset,
  this.length,
  this.aroundLatLng,
  this.aroundLatLngViaIP,
  this.aroundRadius,
  this.aroundPrecision,
  this.minimumAroundRadius,
  this.insideBoundingBox,
  this.insidePolygon,
  this.naturalLanguages,
  this.ruleContexts,
  this.personalizationImpact,
  this.userToken,
  this.getRankingInfo,
  this.synonyms,
  this.clickAnalytics,
  this.analytics,
  this.analyticsTags,
  this.percentileComputation,
  this.enableABTest,
  this.attributesToRetrieve,
  this.ranking,
  this.customRanking,
  this.relevancyStrictness,
  this.attributesToHighlight,
  this.attributesToSnippet,
  this.highlightPreTag,
  this.highlightPostTag,
  this.snippetEllipsisText,
  this.restrictHighlightAndSnippetArrays,
  this.hitsPerPage,
  this.minWordSizefor1Typo,
  this.minWordSizefor2Typos,
  this.typoTolerance,
  this.allowTyposOnNumericTokens,
  this.disableTypoToleranceOnAttributes,
  this.ignorePlurals,
  this.removeStopWords,
  this.keepDiacriticsOnCharacters,
  this.queryLanguages,
  this.decompoundQuery,
  this.enableRules,
  this.enablePersonalization,
  this.queryType,
  this.removeWordsIfNoResults,
  this.mode,
  this.semanticSearch,
  this.advancedSyntax,
  this.optionalWords,
  this.disableExactOnAttributes,
  this.exactOnSingleWordQuery,
  this.alternativesAsExact,
  this.advancedSyntaxFeatures,
  this.distinct,
  this.replaceSynonymsInHighlight,
  this.minProximity,
  this.responseFields,
  this.maxValuesPerFacet,
  this.sortFacetValuesBy,
  this.attributeCriteriaComputedByMinProximity,
  this.renderingContent,
  this.enableReRanking,
  this.reRankingApplyFilter,
  required this.indexName,
  this.type,
});