Forum Discussion
YuriK
12 years agoKhoros Expert
Hey Dharmendra,
The search API gives you a lot more control over the search process. It allows you to enter a query with lucene query syntax (more on lucene query syntax here), create different types of queries (one_or_more, phrase, search), and control sorting. This makes it difficult to identically recreate what you see in the Ask A Question widget. See more details about how to use search here.
Here are a few suggestions to get closer to what you want:
1) instead of q use one_or_more or use fuzzy/wildcard search (with probl* or with probl~)
2) set the date range you want to search on (using "date:[<start date> TO <end date>]" using Unix timestamps inside q)
3) set the sorting you want using sort_by argument
Hope this helps,
Yuri
Related Content
- 2 years ago
- 7 years ago
- 2 years ago