IEEEQueryTransformer), it has to be noted at the JavaDoc.
Otherwise, a single instance QueryTransformer can be used.
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| private static final Logger | |
| public static final String | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected String | |
| protected abstract String | getLogicalAndOperator()
Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator Example: |
| protected abstract String | |
| protected abstract String | getLogicalOrOperator()
Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator Example: |
| protected abstract String | |
| protected String | |
| protected abstract String | |
| protected Optional | handleOtherField(String fieldAsString, String term)
Return a string representation of the provided field If it is not supported return an empty optional. |
| protected abstract String | |
| protected Optional | handleUnFieldedTerm(String term)
Return a string representation of the un-fielded (default fielded) term Default implementation: just return the term (in quotes if a space is contained) |
| protected abstract String | |
| protected String | handleYearRange(String yearRange)
Return a string representation of the year-range fielded term Should follow the structure yyyy-yyyy Example: |
| protected void | |
| private String | |
| protected Optional | transform(OperatorNode query)
Transforms a and b and c to (a AND b AND c), where a, b, and c can be complex expressions. |
| private Optional | |
| private Optional | |
| protected Optional | |
| public Optional | Returns: A query string containing all fields that are contained in the original lucene query and that are expressible in the library specific query language, other information either is discarded or stored as part of the state of the transformer if it can be used e.g. as a URL parameter for the query.The first search node queryNode)Parses the given query string into a complex query using lucene. |
| endYear | back to summary |
|---|---|
| protected int endYear | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NO_EXPLICIT_FIELD | back to summary |
|---|---|
| public static final String NO_EXPLICIT_FIELD | |
| startYear | back to summary |
|---|---|
| protected int startYear | |
| AbstractQueryTransformer | back to summary |
|---|---|
| public AbstractQueryTransformer() | |
| createKeyValuePair | back to summary |
|---|---|
| protected String createKeyValuePair(String fieldAsString, String term) | |
| createKeyValuePair | back to summary |
|---|---|
| protected String createKeyValuePair(String fieldAsString, String term, String separator) | |
| getLogicalAndOperator | back to summary |
|---|---|
| protected abstract String getLogicalAndOperator() Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator Example: | |
| getLogicalNotOperator | back to summary |
|---|---|
| protected abstract String getLogicalNotOperator() Returns the logical NOT operator used by the library Example: | |
| getLogicalOrOperator | back to summary |
|---|---|
| protected abstract String getLogicalOrOperator() Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator Example: | |
| handleAuthor | back to summary |
|---|---|
| protected abstract String handleAuthor(String author) Return a string representation of the author fielded term | |
| handleDoi | back to summary |
|---|---|
| protected String handleDoi(String term) | |
| handleJournal | back to summary |
|---|---|
| protected abstract String handleJournal(String journalTitle) Return a string representation of the journal fielded term | |
| handleOtherField | back to summary |
|---|---|
| protected Optional Return a string representation of the provided field If it is not supported return an empty optional. | |
| handleTitle | back to summary |
|---|---|
| protected abstract String handleTitle(String title) Return a string representation of the title fielded term | |
| handleUnFieldedTerm | back to summary |
|---|---|
| protected Optional Return a string representation of the un-fielded (default fielded) term Default implementation: just return the term (in quotes if a space is contained) | |
| handleYear | back to summary |
|---|---|
| protected abstract String handleYear(String year) Return a string representation of the year fielded term | |
| handleYearRange | back to summary |
|---|---|
| protected String handleYearRange(String yearRange) Return a string representation of the year-range fielded term Should follow the structure yyyy-yyyy Example: | |
| parseYearRange | back to summary |
|---|---|
| protected void parseYearRange(String yearRange) Parses the year range and fills startYear and endYear. Ensures that startYear <= endYear | |
| removeOuterBraces | back to summary |
|---|---|
| private String removeOuterBraces(String query) Removes the outer braces as they are unnecessary | |
| transform | back to summary |
|---|---|
| protected Optional Transforms a and b and c to (a AND b AND c), where a, b, and c can be complex expressions. | |
| transform | back to summary |
|---|---|
| private Optional | |
| transform | back to summary |
|---|---|
| private Optional Handles the not modifier, all other cases are silently ignored | |
| transform | back to summary |
|---|---|
| protected Optional | |
| transformSearchQuery | back to summary |
|---|---|
| public Optional Parses the given query string into a complex query using lucene. Note For unique fields, the alphabetically and numerically first instance in the query string is used in the complex query.
| |