algolia / hn-search

Hacker News Search
http://hn.algolia.com
Other
532 stars 69 forks source link

Support OR operator #169

Open hackerkid opened 4 years ago

hackerkid commented 4 years ago

Currently there seems to be no way to search stories/comments that matches atleast one of the multiple keywords supplied.

For example I want to get all stories or comments that matches "Cambridge Seed" or "Y Combinator". I tried https://hn.algolia.com/api/v1/search_by_date?query=%22yc%22+%22cambridge%20seed%22 but that matches stories which contains both of these keywords. Is there any way to do achieve this using a single query?

niutech commented 3 years ago

+1 for alternative operator. As a workaround, you can search in Google: "Cambridge Seed"|"Y Combinator" site:news.ycombinator.com/item and optionally filter by dates.

Emasoft commented 3 months ago

+1 I want to search all news containing "AI" or "LLM" or "artificial intelligence" or "AGI" or "ML" or "GPT" or "deep learning" or "copilot" or "GANs" or "RAG" or "GenAI" or "vector database" or "LangChain" or "openai" or "anthropic" or "llama" or "Hugging Face" or "CUDA".

niutech commented 3 months ago

Apart from Google Search, you can use DeepHN.

Emasoft commented 3 months ago

Apart from Google Search, you can use DeepHN.

DeepHN does not seem to support the OR operator. Not even on hashtags.