You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been filed to evaluate modifying the Builder withMapping(List<Integer> mapping) API, so that it does not require to reify a concrete list of map ids.
For example:
List<Integer> map =...
var query = new CagraQuery.Builder()
.withMapping(map)
From my understanding a function of int -> int is sufficient. Maybe an additional size(). For Lucene this would work better than reifying the ordinal to doc mapping as a list.
e.g.
Builder withMapping(MappingFunction ordToDocFunc)
@FunctionalInterface
public interface MappingFunction {
/** The given a vector ordinal returns a docId */
int apply(int value);
int size(); // if needed
}
The text was updated successfully, but these errors were encountered:
This issue has been filed to evaluate modifying the
Builder withMapping(List<Integer> mapping)
API, so that it does not require to reify a concrete list of map ids.For example:
From my understanding a function of
int -> int
is sufficient. Maybe an additionalsize()
. For Lucene this would work better than reifying the ordinal to doc mapping as a list.e.g.
Builder withMapping(MappingFunction ordToDocFunc)
The text was updated successfully, but these errors were encountered: