Skip to content

Commit

Permalink
SearchSortFactory documentation corrections
Browse files Browse the repository at this point in the history
removed the use of the deprecated byField and byDistance functions from the SearchSortFactory
  • Loading branch information
bobbyphilip authored and yrodiere committed Feb 17, 2020
1 parent 933aac8 commit ad9ac27
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -93,11 +93,11 @@ default DistanceSortOptionsStep<?> distance(String absoluteFieldPath, double lat
* This is mainly useful to mix imperative and declarative style when building sorts, e.g.:
* <pre>{@code
* f.composite( c -> {
* c.add( f.byField( "category" ) );
* c.add( f.field( "category" ) );
* if ( someInput != null ) {
* c.add( f.byDistance( "location", someInput.getLatitude(), someInput.getLongitude() );
* c.add( f.distance( "location", someInput.getLatitude(), someInput.getLongitude() );
* }
* c.add( f.byIndexOrder() );
* c.add( f.indexOrder() );
* } )
* }</pre>
*
Expand Down

0 comments on commit ad9ac27

Please sign in to comment.