Top Description Methods
org.jabref.logic.importer

public Interface SearchBasedFetcher

extends WebFetcher
Known Direct Subinterfaces
org.jabref.logic.importer.SearchBasedParserFetcher, org.jabref.logic.importer.PagedSearchBasedFetcher
Known Direct Implementers
org.jabref.logic.importer.fetcher.CiteSeer, org.jabref.logic.importer.fetcher.CompositeSearchBasedFetcher, org.jabref.logic.importer.fetcher.GrobidCitationFetcher, org.jabref.logic.importer.fetcher.MedlineFetcher, org.jabref.logic.importer.fetcher.ResearchGate
Imports
java.util.Collections, .List, org.jabref.model.entry.BibEntry, org.apache.lucene.queryparser.flexible.core.QueryNodeParseException, org.apache.lucene.queryparser.flexible.core.nodes.QueryNode, org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser, org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser

Searches web resources for bibliographic information based on a free-text query. May return multiple search hits.

This interface is used for web resources which directly return BibTeX data (BibEntry)

Method Summary

Modifier and TypeMethod and Description
public List<BibEntry>

Returns:

a list of BibEntry, which are matched by the query (may be empty)
performSearch
(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the root node of the lucene query
luceneQuery
)

This method is used to send complex queries using fielded search.

public default List<BibEntry>

Returns:

a list of BibEntry, which are matched by the query (may be empty)
performSearch
(String
query string that can be parsed into a lucene query
searchQuery
)

Looks for hits which are matched by the given free-text query.

Inherited from org.jabref.logic.importer.WebFetcher:
getHelpPagegetNamegetUrlDownload

Method Detail

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

This method is used to send complex queries using fielded search.

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

the root node of the lucene query

Returns:List<BibEntry>

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

performSearchback to summary
public default List<BibEntry> performSearch(String searchQuery) throws FetcherException

Looks for hits which are matched by the given free-text query.

Parameters
searchQuery:String

query string that can be parsed into a lucene query

Returns:List<BibEntry>

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