Skip to content

Use parseField to parse all parameter names #8964

@clintongormley

Description

@clintongormley

Much of the code for parsing parameter names looks like this:

                } else if (  "slop".equals(currentFieldName) 
                             || "phrase_slop".equals(currentFieldName) 
                             || "phraseSlop".equals(currentFieldName)) {

The parseField method already handles the parsing of alternatives (including camelCase and deprecated syntax). It also provides a central point for warning when deprecated parameter names are used (see #11033).

All existing code should be migrated to use parseField.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions