mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
While some might ask, why would the server host IP be available as a search keyword? I only ask you hold my beer as I make it a reality.
This commit is contained in:
parent
e83a7435c6
commit
64844e1db2
@ -183,6 +183,10 @@ public class DocumentProcessor {
|
||||
tagWords.add("proto:"+url.proto.toLowerCase());
|
||||
tagWords.add("js:" + Boolean.toString(ret.features.contains(HtmlFeature.JS)).toLowerCase());
|
||||
|
||||
if (domain.ip != null) {
|
||||
tagWords.add("ip:" + domain.ip.toLowerCase()); // lower case because IPv6 is hexadecimal
|
||||
}
|
||||
|
||||
ret.features.stream().map(HtmlFeature::getKeyword).forEach(tagWords::add);
|
||||
|
||||
words.append(IndexBlock.Meta, tagWords);
|
||||
|
Loading…
Reference in New Issue
Block a user