Permalink
Browse files

On negative result vote also delete document from fulltext index

(not only from dht)
  • Loading branch information...
reger24 committed Jan 1, 2017
1 parent 50e211f commit 396ed3c769b08e4decd847574afa625ee6681426
Showing with 1 addition and 0 deletions.
  1. +1 −0 htroot/yacysearch.java
@@ -528,6 +528,7 @@ public static serverObjects respond(
// delete the index entry locally
final String delHash = post.get("deleteref", ""); // urlhash
if (indexSegment.termIndex() != null) indexSegment.termIndex().remove(qg.getIncludeHashes(), delHash.getBytes());
indexSegment.fulltext().remove(delHash.getBytes());
// make new news message with negative voting
if ( !sb.isRobinsonMode() ) {

3 comments on commit 396ed3c

@luccioman

This comment has been minimized.

Member

luccioman replied Jan 2, 2017

Hi and happy new year @reger24 , for sure this way the negative vote button makes more sense.
To go a step further, what about adding the possibility to easily blacklist a host or single page from the search results page? Maybe with the blacklist page pre filled and opened in a new browser tab, or with a confirm popup, or in any appropriate way. What do you think about it?

@reger24

This comment has been minimized.

Member

reger24 replied Jan 3, 2017

Hi @luccioman and a Happy 2017 to you too.
hm, the option in general, why not, but as you mention "appropriate way" at this point & layout I don't see one w/o getting something in the "searchers" way.
I stumbled on the missing solr remove while still looking into the ranking voting (from earlier discussion) and already uncertain if a silent delete is appropriate (but just fix it, won ;.).
Back to your suggestion, from my point of view/use I see blacklist more in the admin corner and tend/would not implement a extra question into the search user interface (for likely not so frequent backlisting, until there is no other reason/option to pop something up).
P.S. By the way ..... maybe have a look at the unmaintained /yacy/ui/index.html JS interface (there it was incl.).

@luccioman

This comment has been minimized.

Member

luccioman replied Jan 4, 2017

Ok this is something to dig. Maybe an appropriate and not too invasive way would be in the form a new optional link, configurable in the "Search Page Layout", as are the exiting "Metadata" or "Parser" links...

Regarding the delete operation, silent deletion is a little bit straight. I mean it can be easy to click this link by mistake, and the meaning could be confusing : one can think a result is inappropriate for some search terms and would like to delete it from the results, but not completely from the local index. Maybe a confirm pop-up would be useful, or at least a more descriptive HTML title?

Please sign in to comment.