我正在使用airroutes graphml文件设置一个janusgraph。如何在搜索结果中突出显示搜索词?
此查询;
g.V().has('city', textContainsPrefix('At')).valueMap(true,'city')
Janusgraph的响应是
==>{city=[Haa Dhaalu Atoll], id=1188040, label=airport}
==>{city=[Athens], id=57392, label=airport}
==>{city=[Atiu Island], id=950408, label=airport}
==>{city=[Ataq], id=991432, label=airport}
==>{city=[Attawapiskat], id=1253600, label=airport}
==>{city=[Atlantic City], id=266288, label=airport}
==>{city=[Atyrau], id=499816, label=airport}
==>{city=[Huvadhu Atoll], id=2298096, label=airport}
==>{city=[Atlanta], id=8392, label=airport}
==>{city=[Atqasuk], id=1020104, label=airport}
==>{city=[Atmautluak], id=749792, label=airport}
==>{city=[Kaukura Atoll], id=1224744, label=airport}
==>{city=[Huvadhu Atoll], id=2351208, label=airport}
==>{city=[Majuro Atoll], id=577640, label=airport}
==>{city=[Atoifi], id=1441896, label=airport}
==>{city=[Athens], id=917608, label=airport}
==>{city=[Ahe Atoll], id=1790056, label=airport}
我需要这样的回复
==>{city=[Haa Dhaalu 'At'oll], id=1188040, label=airport}
==>{city=['At'hens], id=57392, label=airport}
.
.
.
.
.
答案 0 :(得分:1)
我不知道有任何图形支持这些索引,这些索引也支持突出显示的匹配结果。我认为您必须对查询的结果进行后处理才能实现。