I want to use keywords for the search in yacy. Because of a big amout of pages with same topic, I use up to 4 keywords to find the right pages. In some cases if the search results contains less than 4 keywords then Yacy is giving no result to me. Is there any possibility to connect these keywords with an OR operator that I even get results if not every word is found?
Hi Endurance and welcome to community!
I share the same question as well.
Solr (which is backend fulltext engine used in YaCy) can use several operators: https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html, AND, OR, NOT.
In YaCy, these are exluded from search phrase as stop-words. I don’t understand that either, @Orbiter, what is the point? There is an issue at github as well.
I just asked YaCy Support ai.
Using yacysearch.json what search terms like and or not etc can be used?
Reply:
In YaCy’s
yacysearch.json
interface, search operators such asAND
,OR
, andNOT
can be used to refine search queries. Here is how they function:
- AND: Used to ensure all terms appear in the results.
- OR: Used to find results containing at least one of the terms.
- NOT: Excludes results containing the specified term.
Additionally, standard search modifiers like quotes for exact phrases (
"search phrase"
) or wildcard operators (*
) are typically supported. However, specifics on handling complex boolean queries might vary slightly based on the current YaCy configuration and parsing capabilities.
Result., Yeah, Nah.
Wildcard on one character failed and including operators, just caused the YaCy server to shut up shop straight away.
I assume it is due to overhead caused by something in the code. So it is avoided.
probably, it’s done somewhere here in the code:
https://github.com/yacy/yacy_search_server/tree/master/source/net/yacy/search/query