Sarah Hoffmann
42f079c355
introduce Result class in Geocode and SearchDescription
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
cdf8c67898
fix CodeSniffer offences
2017-10-13 23:11:09 +02:00
Sarah Hoffmann
00265af528
move word recheck into token collection
...
Drop tokens for special and postcode searches already when
collecting them for ValidTokens when they cannot be found
in the normalized query.
2017-10-13 23:04:12 +02:00
Sarah Hoffmann
77b76ae51b
simplify cross-check of country tokens
...
Drop country tokens that do not match the country code list
early. Remove in turn the special country code check for
structured phrases. It is sufficient to do this during
word list building.
2017-10-13 22:23:39 +02:00
Sarah Hoffmann
77abe882ab
take frequency scores from token description
...
No need to hand them in separately.
2017-10-12 22:59:07 +02:00
Sarah Hoffmann
c8780da19c
documentation for SearchContext and SearchDescription
2017-10-10 00:15:56 +02:00
Sarah Hoffmann
c02bf4986f
coding style and some documentation
2017-10-09 23:13:04 +02:00
Sarah Hoffmann
9a5d5d9aec
move complete search query code into SearchDescription
2017-10-09 22:55:50 +02:00
Sarah Hoffmann
55629a4891
move country list to SearchContext
2017-10-08 23:33:54 +02:00
Sarah Hoffmann
907133a38c
move excluded place list to SearchContext
2017-10-08 23:15:06 +02:00
Sarah Hoffmann
86c0858130
move viewbox sql to new SearchContext
2017-10-08 22:44:01 +02:00
Sarah Hoffmann
30511fd3ab
replace NearPoint with a more generic context object
...
The NearPoint is actually common to all SearchDescriptions
and there is other context data as well. like viewbox, that
needs to be available to the search object but is common.
2017-10-08 21:23:31 +02:00
Sarah Hoffmann
614a6ab861
don't trust words from word table to be sanatized
2017-10-08 17:36:38 +02:00
Sarah Hoffmann
4bff2814a9
add missing include
2017-10-08 17:13:41 +02:00
Sarah Hoffmann
8e0ffde3e0
fix CodeSniffer violations
2017-10-08 17:00:59 +02:00
Sarah Hoffmann
795153b213
fix more syntax issues
2017-10-08 16:42:04 +02:00
Sarah Hoffmann
fd08d41962
move Search dump function into SearchDescription class
2017-10-08 16:05:27 +02:00
Sarah Hoffmann
75e35f3832
fix syntax errors from introduction of SearchDescription
2017-10-08 15:26:14 +02:00
Sarah Hoffmann
16268f92cc
convert getGroupedSearches to SearchDescription class
2017-10-08 12:57:22 +02:00
Sarah Hoffmann
d72c863353
add function to convert array to SQL
2017-10-08 10:06:17 +02:00
Sarah Hoffmann
96b6a1a418
use SearchDescription class in query loop
2017-10-08 09:54:12 +02:00
Sarah Hoffmann
0067555c38
move initial search setup to new class type
2017-10-07 12:24:21 +02:00
Sarah Hoffmann
77d4453334
add new class for searches
2017-10-07 12:24:21 +02:00