Class CloudSearchUtils

java.lang.Object
org.apache.nutch.indexwriter.cloudsearch.CloudSearchUtils

public class CloudSearchUtils extends Object
  • Constructor Details

    • CloudSearchUtils

      public CloudSearchUtils()
  • Method Details

    • getID

      public static String getID(String url)
      Returns a normalised doc ID based on the URL of a document
      Parameters:
      url - the document url to obtain an ID for
      Returns:
      A unique ID for the document. A document ID can contain any letter or number and the following characters: _ - = # ; : / ? @ &. Document IDs must be at least 1 and no more than 128 characters long.
      See Also:
    • stripNonCharCodepoints

      public static String stripNonCharCodepoints(String input)