public class TextSearchResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_done
Codes that indicate why the search process returns.
|
static int |
e_found
The Constant e_found.
|
static int |
e_page
The Constant e_page.
|
Constructor and Description |
---|
TextSearchResult(int cd,
int pn,
java.lang.String rs,
java.lang.String as,
long hlts_impl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAmbientStr()
Get the ambient string that surrounds the found string.
|
int |
getCode()
Get the code indicating the reason that the search process returns.
|
Highlights |
getHighlights()
Get the Highlight info that is associated with the found string.
|
int |
getPageNum()
Get the number of the page the found instance is on.
|
java.lang.String |
getResultStr()
Get the found string that matches the input pattern.
|
public static final int e_done
public static final int e_page
public static final int e_found
public TextSearchResult(int cd, int pn, java.lang.String rs, java.lang.String as, long hlts_impl)
cd
- search process return codepn
- page numberrs
- result stringas
- ambient stringhlts_impl
- highlight_implpublic int getCode()
public int getPageNum()
public java.lang.String getResultStr()
public java.lang.String getAmbientStr()
public Highlights getHighlights()