public class URIMetadataNode
extends SolrDocument
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
alternative_urlname |
private java.lang.String |
alternative_urlstring |
protected int |
appc |
protected int |
audioc |
protected Bitfield |
flags |
protected int |
imagec |
protected java.lang.String |
keywords |
protected double |
lat |
protected double |
lon |
protected float |
score |
private static long |
serialVersionUID |
protected java.lang.String |
snippet |
private TextSnippet |
textSnippet |
protected DigestURL |
url |
protected int |
videoc |
protected WordReferenceVars |
word |
Constructor and Description |
---|
URIMetadataNode(java.util.Properties prop,
java.lang.String collection) |
URIMetadataNode(SolrDocument doc) |
URIMetadataNode(SolrDocument doc,
WordReferenceVars searchedWord,
float scorex) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
collections() |
protected java.lang.StringBuilder |
corePropList() |
java.util.Date[] |
datesInContent() |
java.lang.String |
dc_creator() |
java.lang.String |
dc_publisher() |
java.lang.String |
dc_subject() |
java.lang.String |
dc_title() |
char |
doctype() |
java.util.Date[] |
events()
used for search result entry
|
int |
filesize()
gives the size in byte of the original url document
|
Bitfield |
flags() |
java.util.Date |
freshdate()
Get calculated date until resource shall be considered as fresh
this may be a date in future
|
Classification.ContentDomain |
getContentDomain()
Get the content domain of a document.
|
private java.util.Date |
getDate(CollectionSchema field) |
static java.util.Date |
getDate(SolrDocument doc,
CollectionSchema key) |
private java.util.Date[] |
getDates(CollectionSchema field) |
java.util.ArrayList<java.lang.String> |
getDescription() |
private int |
getInt(CollectionSchema field) |
private java.util.ArrayList<java.lang.Integer> |
getIntList(CollectionSchema field) |
static java.util.Iterator<java.lang.String> |
getLinks(SolrDocument doc,
boolean inbound) |
java.util.List<java.lang.StringBuilder> |
getSentences(boolean pre) |
private java.lang.String |
getString(CollectionSchema field) |
private java.util.ArrayList<java.lang.String> |
getStringList(CollectionSchema field) |
java.lang.String |
getText() |
java.util.List<java.lang.String> |
h1() |
java.util.List<java.lang.String> |
h2() |
java.util.List<java.lang.String> |
h3() |
java.util.List<java.lang.String> |
h4() |
java.util.List<java.lang.String> |
h5() |
java.util.List<java.lang.String> |
h6() |
byte[] |
hash() |
int |
hashCode() |
boolean |
hasTextSnippet()
used for search result entry
|
java.lang.String |
hosthash() |
static URIMetadataNode |
importEntry(java.lang.String propStr,
java.lang.String collection) |
java.lang.String |
language()
Content language
|
int |
lapp() |
double |
lat() |
int |
laudio() |
int |
limage() |
int |
llocal() |
java.util.Date |
loaddate() |
double |
lon() |
int |
lother() |
int |
lvideo() |
URIMetadataNode |
makeResultEntry(Segment indexSegment,
SeedDB peers,
TextSnippet textSnippet)
Initialisize some variables only needed for search results
and eleminates underlaying fields not needed for search results
! never put this back to the index because of the reduced content fields
|
boolean |
matches(java.util.regex.Pattern pattern) |
java.lang.String |
md5()
Deprecated.
obsolete, never assigned a value
|
java.lang.String |
mime() |
java.util.Date |
moddate() |
byte[] |
referrerHash() |
java.lang.String |
resource()
used for search result entry
|
float |
score()
Get the YaCy ranking score for this entry
(the value is updated while adding to the result queue where score calc takes place)
|
void |
setScore(float theScore)
Set the YaCy ranking score to make it accessible in the search interface/api
(should be set to the effective value of result queues getWeight)
|
java.lang.String |
snippet() |
TextSnippet |
textSnippet()
used for search result entry
|
java.lang.String |
title()
used for search result entry
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String snippet)
the toString format to transport the data over p2p connections.
|
DigestURL |
url() |
int |
urllength() |
java.lang.String |
urlname()
used for search result entry
|
java.lang.String |
urlstring()
used for search result entry
|
int |
virtualAge() |
WordReferenceVars |
word() |
int |
wordCount() |
int |
wordsintitle() |
private static final long serialVersionUID
protected java.lang.String keywords
protected DigestURL url
protected Bitfield flags
protected int imagec
protected int audioc
protected int videoc
protected int appc
protected double lat
protected double lon
protected float score
protected java.lang.String snippet
protected WordReferenceVars word
private java.lang.String alternative_urlstring
private java.lang.String alternative_urlname
private TextSnippet textSnippet
public URIMetadataNode(java.util.Properties prop, java.lang.String collection) throws java.net.MalformedURLException
java.net.MalformedURLException
public URIMetadataNode(SolrDocument doc) throws java.net.MalformedURLException
java.net.MalformedURLException
public URIMetadataNode(SolrDocument doc, WordReferenceVars searchedWord, float scorex) throws java.net.MalformedURLException
java.net.MalformedURLException
public Classification.ContentDomain getContentDomain()
public byte[] hash()
public java.lang.String hosthash()
public java.util.Date moddate()
public java.util.Date[] datesInContent()
public DigestURL url()
public boolean matches(java.util.regex.Pattern pattern)
public java.lang.String dc_title()
public java.util.List<java.lang.String> h1()
public java.util.List<java.lang.String> h2()
public java.util.List<java.lang.String> h3()
public java.util.List<java.lang.String> h4()
public java.util.List<java.lang.String> h5()
public java.util.List<java.lang.String> h6()
public java.lang.String dc_creator()
public java.lang.String dc_publisher()
public java.lang.String dc_subject()
public double lat()
public double lon()
public float score()
public void setScore(float theScore)
theScore
- YaCy ranking of search resultspublic java.util.Date loaddate()
public java.util.Date freshdate()
@Deprecated public java.lang.String md5()
public char doctype()
public java.lang.String mime()
public java.lang.String language()
public byte[] referrerHash()
public int filesize()
public Bitfield flags()
public int wordCount()
public int llocal()
public int lother()
public int limage()
public int laudio()
public int lvideo()
public int lapp()
public int virtualAge()
public int wordsintitle()
public int urllength()
public java.lang.String snippet()
public java.lang.String[] collections()
public WordReferenceVars word()
public static java.util.Iterator<java.lang.String> getLinks(SolrDocument doc, boolean inbound)
public static java.util.Date getDate(SolrDocument doc, CollectionSchema key)
public java.lang.String getText()
public java.util.List<java.lang.StringBuilder> getSentences(boolean pre)
public java.util.ArrayList<java.lang.String> getDescription()
public static URIMetadataNode importEntry(java.lang.String propStr, java.lang.String collection)
protected java.lang.StringBuilder corePropList()
public java.lang.String toString(java.lang.String snippet)
public java.lang.String toString()
{hash=jmqfMk7Y3NKw,referrer=------------,mod=20050610,load=20051003,size=51666,wc=1392,cc=0,local=true,q=AEn,dt=h,lang=uk,url=b|aHR0cDovL3d3dy50cmFuc3BhcmVuY3kub3JnL3N1cnZleXMv,descr=b|S25vd2xlZGdlIENlbnRyZTogQ29ycnVwdGlvbiBTdXJ2ZXlzIGFuZCBJbmRpY2Vz}and is used in the peer to peer exchange*
private int getInt(CollectionSchema field)
private java.util.Date getDate(CollectionSchema field)
private java.util.Date[] getDates(CollectionSchema field)
private java.lang.String getString(CollectionSchema field)
private java.util.ArrayList<java.lang.String> getStringList(CollectionSchema field)
private java.util.ArrayList<java.lang.Integer> getIntList(CollectionSchema field)
public URIMetadataNode makeResultEntry(Segment indexSegment, SeedDB peers, TextSnippet textSnippet)
indexSegment
- peers
- textSnippet
- public java.lang.String urlstring()
public java.lang.String urlname()
public java.lang.String title()
public TextSnippet textSnippet()
public java.util.Date[] events()
public boolean hasTextSnippet()
public java.lang.String resource()
public int hashCode()