Top Methods
org.jabref.logic.importer

public Interface PagedSearchBasedParserFetcher

extends SearchBasedParserFetcher, PagedSearchBasedFetcher, ParserFetcher
Known Direct Implementers
org.jabref.logic.importer.fetcher.AstrophysicsDataSystem, org.jabref.logic.importer.fetcher.IEEE, org.jabref.logic.importer.fetcher.ISIDOREFetcher, org.jabref.logic.importer.fetcher.LOBIDFetcher, org.jabref.logic.importer.fetcher.ScholarArchiveFetcher, org.jabref.logic.importer.fetcher.SemanticScholar, org.jabref.logic.importer.fetcher.SpringerFetcher
Imports
java.io.IOException, .InputStream, java.net.MalformedURLException, .URISyntaxException, .URL, java.util.List, org.jabref.model.entry.BibEntry, org.jabref.model.paging.Page, org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

Method Summary

Modifier and TypeMethod and Description
private List<BibEntry>
public URL
getURLForQuery(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the search query
luceneQuery
,
int
the number of the page indexed from 0
pageNumber
)

Constructs a URL based on the query, size and page number.

public default URL
getURLForQuery(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the root node of the lucene query
luceneQuery
)

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getURLForQuery.

Constructs a URL based on the lucene query.

public default List<BibEntry>
performSearch(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the root node of the lucene query
luceneQuery
)

Overrides default org.jabref.logic.importer.SearchBasedParserFetcher.performSearch, org.jabref.logic.importer.PagedSearchBasedFetcher.performSearch.

This method is used to send queries with advanced URL parameters.

public default Page<BibEntry>
performSearchPaged(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the root node of the lucene query
luceneQuery
,
int
requested site number indexed from 0
pageNumber
)

Implements org.jabref.logic.importer.PagedSearchBasedFetcher.performSearchPaged.

Inherited from org.jabref.logic.importer.PagedSearchBasedFetcher:
getPageSizeperformSearchPaged
Inherited from org.jabref.logic.importer.ParserFetcher:
doPostCleanup
Inherited from org.jabref.logic.importer.SearchBasedParserFetcher:
getParser

Method Detail

getBibEntriesback to summary
private List<BibEntry> getBibEntries(URL urlForQuery) throws FetcherException

Redeclares private: org.jabref.logic.importer.SearchBasedParserFetcher.getBibEntries.

getURLForQueryback to summary
public URL getURLForQuery(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery, int pageNumber) throws URISyntaxException, MalformedURLException, FetcherException

Constructs a URL based on the query, size and page number.

Parameters
luceneQuery:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

the search query

pageNumber:int

the number of the page indexed from 0

getURLForQueryback to summary
public default URL getURLForQuery(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery) throws URISyntaxException, MalformedURLException, FetcherException

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getURLForQuery.

Doc from org.jabref.logic.importer.SearchBasedParserFetcher.getURLForQuery.

Constructs a URL based on the lucene query.

Parameters
luceneQuery:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

the root node of the lucene query

Annotations
@Override
performSearchback to summary
public default List<BibEntry> performSearch(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery) throws FetcherException

Overrides default org.jabref.logic.importer.SearchBasedParserFetcher.performSearch, org.jabref.logic.importer.PagedSearchBasedFetcher.performSearch.

Doc from org.jabref.logic.importer.SearchBasedParserFetcher.performSearch.

This method is used to send queries with advanced URL parameters. This method is necessary as the performSearch method does not support certain URL parameters that are used for fielded search, such as a title, author, or year parameter.

Parameters
luceneQuery:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

the root node of the lucene query

Returns:List<BibEntry>

Doc from org.jabref.logic.importer.PagedSearchBasedFetcher.performSearch.

a list of BibEntry, which are matched by the query (may be empty)

Annotations
@Override
performSearchPagedback to summary
public default Page<BibEntry> performSearchPaged(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery, int pageNumber) throws FetcherException

Implements org.jabref.logic.importer.PagedSearchBasedFetcher.performSearchPaged.

Parameters
luceneQuery:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

Doc from org.jabref.logic.importer.PagedSearchBasedFetcher.performSearchPaged.

the root node of the lucene query

pageNumber:int

Doc from org.jabref.logic.importer.PagedSearchBasedFetcher.performSearchPaged.

requested site number indexed from 0

Returns:Page<BibEntry>

Doc from org.jabref.logic.importer.PagedSearchBasedFetcher.performSearchPaged.

Page with search results

Annotations
@Override