Skip to content

Commit f8cb3d5

Browse files
author
MartinMikita
committed
Added place_rank constant for PostCodes - 20, same as suburb from OSM
1 parent 976f3d7 commit f8cb3d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf/sphinx/sphinx.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ if isfile('/data/input/postcodes-uk.csv'):
324324
source src_tsv_postcodes_uk
325325
{
326326
type = tsvpipe
327-
tsvpipe_command = %(catcmd)s | sed -e 's/\\r//g' | gawk -F"," -v OFS='\\t' 'NR > 1 && NF == 4 { $5="1.0"; $6=$2 ; $7=$2; $8="postcode"; $9=$4; $10=$3; $11=$4; $12=$3; NF = 12; for (i=1; i<=NF; i++) printf("%%s%%s", $i, (i!=NF)?OFS:ORS) }'
327+
tsvpipe_command = %(catcmd)s | sed -e 's/\\r//g' | gawk -F"," -v OFS='\\t' 'NR > 1 && NF == 4 { $5="1.0"; $6=$2 ; $7=$2; $8="postcode"; $9=$4; $10=$3; $11=$4; $12=$3; $13="20.0"; NF = 13; for (i=1; i<=NF; i++) printf("%%s%%s", $i, (i!=NF)?OFS:ORS) }'
328328
}
329329
330330
# /* --------------- ~ PostCodes UK source --------------- */
@@ -349,6 +349,7 @@ source src_postcodes_uk : src_tsv_postcodes_uk
349349
tsvpipe_attr_float = south
350350
tsvpipe_attr_float = east
351351
tsvpipe_attr_float = north
352+
tsvpipe_attr_float = place_rank
352353
}
353354
354355
index ind_postcodes_infix_uk : ind_main_charset

0 commit comments

Comments
 (0)