Sends an advanced query to the search engine.
int doAdvancedQuery ‘(‘String query, String queryexpr, String databases, int MaxDocs int relevance int ageType String ageOfInformation String queryField')' throws RemoteException, SearchException
query – an equation representing query text, along with query type and query operator. If query is entered, queryexpr is ignored. Combination of query type and query operators include:
MUST_WORD |
SHOULD_WORD |
MUSTNOT_WORD |
MUST_PERSON |
SHOULD_PERSON |
MUSTNOT_PERSON |
MUST_PHRASE |
SHOULD_PHRASE |
MUSTNOT_PHRASE |
For example, querywithopr looks like:
MUST_WORD=Sybase EP&&MUSTNOT_WORD=Enterprise Portal && .&&
where the query results must include the words “Sybase EP” and exclude the words “Enterprise Portal.”
queryexpr – logical query expression used to query the DRE only if query is NULL.
databases – a comma-delimited list of search engine databases. An empty string means all databases from all DREs.
maxDocs – maximum number of documents to return.
relevance – the relevance of the document from 0 – 100, with 100 being the highest.
ageType – 1=days, 2=weeks, 3=months, 4=years, or 5=date range.
ageOfInformation – timeframe for which the query should be done, expressed in number of days, weeks, months, years, or in the form dd/mm/yyyy, dd/mm/yyyy.
queryField – an expression presenting a combination of query fields.
For example:
Title=ASE 12.5 design document&&Summary=ASE 12.5 design document
returns the number of result documents that contain the unique title or summary (headings after the document title) “ASE 12.5 design document.”
Number of result documents.
Returns the value: >= 0 if successful; otherwise, failure.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |