Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch2 #138

Merged
merged 8 commits into from
Jun 30, 2016
Merged

Elasticsearch2 #138

merged 8 commits into from
Jun 30, 2016

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Jun 30, 2016

  • add goldbergianPeliasHousenumber to ensure that numeric values are treated as whole tokens rather than creating prefixes.
  • use single gram analyzers for all fields, no longer using 2 gram analysis
  • remove settings deprecated in ES2
  • remove dynamic_templates so now all _type have the same config

missinglink and others added 6 commits June 30, 2016 17:56
Created a super-convoluted, yet necessary, series of built-in filters to not prefix n-gram house numbers.  That is, from `14a`, we want `14` and `14a` but not `1`.

eg: 14a w main st
surround_single_characters_with_!s  -> [14a, !w!, main, st]
house_number_word_delimiter         -> [14, 14a, a, !w!, main, st]
remove_single_characters            -> [14, 14a, !w!, main, st]
surround_house_numbers_with_!s      -> [!14!, !14a!, !w!, main, st]
peliasOneEdgeGramFilter             -> [!, !1, !14, !14!, !, !1, !14, !14a, !14a!, !, !w, !w!, m, ma, mai, main, s, st]
eliminate_tokens_starting_with_!    -> ["", "", "", !14!, "", "", "", "", !14a!, "", "", w, m, ma, mai, main, s, st]
remove_encapsulating_!s             -> ["", "", "", 14, "", "", "", "", 14a, "", "", w, m, ma, mai, main, s, st]
notnull                             -> [14, 14a, w, m, ma, mai, main, s, st]
unique                              -> [14, 14a, w, m, ma, mai, main, s, st]
@orangejulius
Copy link
Member

:shipit:

1 similar comment
@dianashk
Copy link
Contributor

:shipit:

@avulfson17
Copy link
Contributor

LGTM

@orangejulius orangejulius merged commit ba0fc7d into master Jun 30, 2016
@orangejulius orangejulius deleted the elasticsearch2 branch July 19, 2016 19:31
orangejulius added a commit that referenced this pull request Oct 31, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
orangejulius added a commit that referenced this pull request Oct 31, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
orangejulius added a commit that referenced this pull request Oct 31, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
orangejulius added a commit that referenced this pull request Nov 7, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
missinglink pushed a commit that referenced this pull request Nov 20, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
missinglink pushed a commit that referenced this pull request Nov 20, 2019
This removes the complex filtering logic known as the "complicated
housenumber filter", or sometimes even the "goldbergian housenumber
filter", originally described in
#133 and merged as part of our ES2
upgrade (#138).

The housenumber filter was made quite a long time ago, with the
intention of removing partial numeric tokens.

It's quite a lot of code, rather hard to understand, and may actually
cause more problems than it sovles.

In particular, fully numeric postal codes cannot be found with
autocomplete until the postal code is entered completely (see
pelias/pelias#676).

Since this code was written, we've improved autocomplete considerably,
and having some tokens missing could be resulting in autocomplete not
doing its job as well as it could.

However, there could also be downsides: this will increase the hit count
for numeric inputs dramatically, so it could cause more slow queries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants