summaryrefslogtreecommitdiff
path: root/core/src/main/java/org/elasticsearch/search/suggest/completion/context
AgeCommit message (Collapse)Author
2017-07-03Remove QueryParseContext (#25486)Christoph Büscher
QueryParseContext is currently only used as a wrapper for an XContentParser, so this change removes it entirely and changes the appropriate APIs that use it so far to only accept a parser instead.
2017-05-31Fix context suggester to read values from keyword type field (#24200)Masaru Hasegawa
Closes #24129
2017-04-24Provide informative error message in case of unknown suggestion context. ↵Nilabh Sagar
(#24241) Provide a list of available contexts when you send an unknown context to the completion suggester.
2017-04-12Allow different data types for category in Context suggester (#23491)Nilabh Sagar
The "category" in context suggester could be String, Number or Boolean. However with the changes in version 5 this is failing and only accepting String. This will have problem for existing users of Elasticsearch if they choose to migrate to higher version; as their existing Mapping and query will fail as mentioned in a bug #22358 This PR fixes the above mentioned issue and allows user to migrate seamlessly. Closes #22358
2017-02-06Remove GeoPointFieldMapper abstractionNicholas Knize
In order to support the evolving GeoPoint encodings in Lucene 5 and 6, ES 2.x and 5.x implements an abstraction layer to the GeoPointFieldMapper classes. As of 5.x the geo_point field mapper settled on using Lucene's more performant LatLonPoint field type and deprecated all other encodings. In 6.0 all encodings except LatLonPoint have been removed rendering this abstraction layer useless. This commit removes the abstraction layer and renames the LatLonPointFieldMapper back to GeoPointFieldMapper to mantain consistency with ES field naming.
2017-02-03Upgrade checkstyle to version 7.5Jason Tedor
This commit upgrades the checkstyle configuration from version 5.9 to version 7.5, the latest version as of today. The main enhancement obtained via this upgrade is better detection of redundant modifiers. Relates #22960
2017-01-12Remove ParseFieldMatcher usages from QueryParseContextjavanna
2017-01-05remove ParseFieldMatcher usages from suggestersjavanna
2016-11-30Remove 2.x backward compatibility of mappings. (#21670)Adrien Grand
For the record, I also had to remove the geo-hash cell and geo-distance range queries to make the code compile. These queries already throw an exception in all cases with 5.x indices, so that does not hurt any more. I also had to rename all 2.x bwc indices from `index-${version}` to `unsupported-${version}` to make `OldIndexBackwardCompatibilityIT` happy.
2016-09-13Cut over geo_point field and queries to new LatLonPoint typeNicholas Knize
This commit cuts over geo_point fields to use Lucene's new point-based LatLonPoint type for indexes created in 5.0. Indexes created prior to 5.0 continue to use their respective encoding type. Below is a description of the changes made to support the new encoding type: * New indexes use a new LatLonPointFieldMapper which provides a parse method for the new type * The new LatLonPoint parse method removes support for lat_lon and geohash parameters * Backcompat testing for deprecated lat_lon and geohash parameters is added to all unit and integration tests * LatLonPointFieldMapper provides DocValues support (enabled by default) which uses Lucene's new LatLonDocValuesField type * New LatLonPoint field data classes are added for aggregation support (wraps LatLonPoint's Numeric Doc Values) * MultiFields use the geohash as the string value instead of the lat,lon string making it easier to perform geo string queries on the geohash instead of a lat,lon comma delimited string. Removed Features: * With the removal of geohash indexing, GeoHashCellQuery support is removed for all new indexes (still supported on existing indexes) * LatLonPoint does not support a Distance Range query because it is super inefficient. Instead, the geo_distance_range query should be accomplished using either the geo_distance aggregation, sorting by descending distance on a geo_distance query, or a boolean must not of the excluded distance (which is what the distance_range query did anyway). TODO: * fix/finish yaml changes for plugin and rest integration tests * update documentation
2016-08-10Collapse o.e.index.mapper packages. #19921Adrien Grand
I also reduced the visibility of a couple classes and renamed/consolidated some test classes for consistency, eg. removing the `Simple` prefix or using the `<Type>FieldMapperTests` convention for testing field mappers.
2016-08-01Add descriptions for o.e.search.suggest packages (#19699)Nik Everett
Let's have readable javadoc!
2016-04-15Pass down parse context instead of just parser in completion context suggester.Christoph Büscher
2016-04-15Remove ParseFieldMatcher from AbstractXContentParserChristoph Büscher
Currently we are able to set a ParseFieldMatcher on XContentParsers, mainly to conveniently carry it around to be available where the actual parsing happens. This was just recently introduced together with ObjectParser so that ObjectParser can make use of deprecation logging and throwing errors while parsing. This however is trappy because we create parsers in so many places in the code and it is easy to forget setting the right ParseFieldMatcher. Instead we should hold the ParseFieldMatcher only in the parse contexts (e.g. QueryParseContext). This PR removes the ParseFieldMatcher from XContentParser. ObjectParser can still make use of it because we can make the otherwise unbounded `context` type to extend an interface that makes sure contexts used in ObjectParser can supply a ParseFieldMatcher. Contexts in ObjectParser are now no longer optional, but it is sufficient to pass in a small lambda expression in places where no other context is available. Relates to #17417
2016-04-14Remove remaining PROTOTYPEs from org.elasticsearch.search.suggestNik Everett
2016-04-11Upgrade Lucene 6 ReleaseAdrien Grand
* upgrades numerics to new Point format * updates geo api changes * adds GeoPointDistanceRangeQuery as XGeoPointDistanceRangeQuery * cuts over to ES GeoHashUtils
2016-03-29Remove PROTOTYPEs from suggestersNik Everett
Also stops using guice for suggesters at all and lots of checkstyle.
2016-03-09cleanupAreek Zillur
2016-03-09construct suggestion context from query contextAreek Zillur
2016-02-12Merge remote-tracking branch 'upstream/master' into feature-suggest-refactoringAli Beyad
2016-02-11upgrade to lucene 5.5.0-snapshot-850c6c2Nicholas Knize
2016-02-10initial refactoring of completion suggesterAreek Zillur
2015-12-18Remove wildcard importsRyan Ernst
2015-11-12Enable GeoPointV2 with backward compatibility testingNicholas Knize
This commit removes all noreleases and cuts over to Lucene 5.4 GeoPointField type. Included are randomized testing updates to unit and integration test suites for ensuring full backward compatability with existing geo_point indexes.
2015-11-07add query context buildersAreek Zillur
2015-11-07add back awaitfix testsAreek Zillur
2015-11-07cut over to using ObjectParser for context mappingsAreek Zillur
2015-11-07added FuzzyOptionsBuilder javadocs and cleanupsAreek Zillur
2015-11-07Completion Suggester V2Areek Zillur
The completion suggester provides auto-complete/search-as-you-type functionality. This is a navigational feature to guide users to relevant results as they are typing, improving search precision. It is not meant for spell correction or did-you-mean functionality like the term or phrase suggesters. The completions are indexed as a weighted FST (finite state transducer) to provide fast Top N prefix-based searches suitable for serving relevant results as a user types. closes #10746