<div dir="ltr"><div>Bernd, thanks for the hint - so  the style rule can be useful to other non-latin countries,  with a proper stop word list to avoid indexing not-meaningful words.</div><div><br></div><div>In any case - by including a proper list of ignore words per country to limit index size and if the issue I highlighted earlier in this email is solved - the mixed index appears to be the proper final solution to me,  without the need to have any additional style rule .  Did I get it right that with the mixed index all the words (except if in ignore list) are indexed as single words? Is there a limit in the number of words for a single street? (there might be streets with 6/7 words, using blanks, apostrophes or dashes as separator). </div><div><br></div><div>On the other side, I like the current output I get with my style rule, where a user can get the street full name also when searching with a single word, that&#39;s what I seem to miss with the mixed-index.</div><div><br></div><div>Enrico</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 12, 2015 at 12:19 PM, Bernd Weigelt <span dir="ltr">&lt;<a href="mailto:weigelt.bernd@web.de" target="_blank">weigelt.bernd@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Sonntag, 11. Januar 2015, 22:11:43 schrieb Enrico Liboni:<br>
<span class="">&gt; Pls. let me know your point,<br>
<br>
</span>Hi Enrico<br>
<br>
when playing around with your rules, i have seen that in the german speaking<br>
parts of Italy, Switzerland. France, Luxembourg and Belgium a lot of streets<br>
are tagged with &#39;An, Zum, In, ...&#39; This parts of the name are also useless for<br>
searching by name.<br>
<br>
But if i add<br>
  mkgmap:country=LUX |<br>
  mkgmap:country=DEU |<br>
  mkgmap:country=BEL |<br>
  mkgmap:country=AUT<br>
to the country list, i got lots of list entries like<br>
  Straße, Kieler<br>
  Weg, Bonner<br>
  ...<br>
<br>
This are my changes<br>
<br>
###<br>
<span class=""># Get the last full word if a \s (whitespace) exist in name<br>
# if the last full word is a roman number - i.e. if a street has been named<br>
after a King or<br>
# a Pope - get the last two words<br>
# set the labels used for address search (3&amp;4):<br>
# the 3rd label  is set with the last:word as 1st word followed by comma and<br>
the remaining words<br>
# the 4th label skipping the 1st word (that is usually Via, Rue, Avenida etc,<br>
so not really useful in search)<br>
<br>
( mkgmap:country=ITA |<br>
  mkgmap:country=FRA |<br>
  mkgmap:country=CHE |<br>
  mkgmap:country=ESP |<br>
</span>  mkgmap:country=BEL |<br>
  mkgmap:country=LUX |<br>
  mkgmap:country=DEU |<br>
  mkgmap:country=AUT<br>
  )<br>
<span class="">  &amp; highway=*<br>
  &amp; name ~ &#39;.*\s.*&#39;<br>
  { set last:word=&#39;${name|part: :-1}&#39; }<br>
<br>
</span># the ignore list should be greater<br>
last:word=*<br>
  &amp; (<br>
     last:word = Straße|<br>
     last:word = Weg|<br>
     last:word = Ring|<br>
     last:word = Platz|<br>
     last:word = Straat|<br>
     last:word = Laan<br>
     )<br>
        { delete last:word }<br>
<span class=""><br>
last:word ~ &#39;(I|II|III|IV|V|VI.*|IX|X|XI.*|XV.*|XX.*)&#39;<br>
  {set last:word=&#39;${name|part: &gt;-3}&#39; }<br>
<br>
last:word=*<br>
  { set mkgmap:label:3=&#39;${last:word}, ${name|part: &lt;-1}&#39;;<br>
    set mkgmap:label:4=&#39;${name|part: &gt;1}&#39;<br>
    }<br>
<br>
</span># only for the tests<br>
last:word=*<br>
  {echo &#39;${mkgmap:label:1} | ${mkgmap:label:2} | ${mkgmap:label:3} | \<br>
${mkgmap:label:4}&#39;;<br>
  echotags &#39;&#39;}<br>
###<br>
<br>
<br>
the result is something like that:<br>
<br>
320136003: Am Stadtpark | null | Stadtpark, Am  | Stadtpark<br>
320136003 - [mkgmap:admin_level6=Rheinisch-Bergischer<br>
Kreis,mkgmap:admin_level5=Regierungsbezirk Köln,name=Am<br>
Stadtpark,mkgmap:postal_code=42799,mkgmap:postcode=42799,mkgmap:street=Am<br>
Stadtpark,route_ref=255,694,255,highway=residential,<br>
mkgmap:country=DEU,mkgmap:admin_level2=DEU,last:word=Stadtpark,<br>
mkgmap:label:3=Stadtpark, Am ,mkgmap:label:1=Am<br>
Stadtpark,mkgmap:admin_level4=Nordrhein-<br>
Westfalen,mkgmap:city=Leichlingen,mkgmap:region=Nordrhein-<br>
Westfalen,mkgmap:admin_level8=Leichlingen,mkgmap:label:4=Stadtpark ]<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
amarok2 now playing:<br>
artist: Lemar<br>
title: Don&#39;t Give It Up<br>
album: Time To Grow<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</div></div></blockquote></div><br></div>