Calling Search via API

Posted by Community Admin on 03-Aug-2018 16:28

Calling Search via API

All Replies

Posted by Community Admin on 19-Aug-2011 00:00

Im working on a search implementation that will require me to get the search results from Sitefinity using the API. Previously I was using this:

var searchManager = SearchManager.GetManager(null);
var searchQuery = string.Format("*0*",searchTerm);
 
var results = searchManager.Find("sitefinity-content-index", searchQuery);

This doesn't seem to return any results? 

Is there a better way to go about this in Sitefinity 4.2?

Posted by Community Admin on 24-Aug-2011 00:00

Hi Jerami,

At the moment search via query that contains wildcard at the beginning of a word is disabled because of additional performance hit with large indexes. For more information http://manfredlange.blogspot.com/2010/07/wildcard-searches-in-lucenenet.html

At the moment we do not have a automatic configuration that can turn on the search via query that contains wildcard at beginning of a word. I logged a task that will allow easy configuration of the Query Parser.

If you need a working solution ASAP I can provide you with details how to replace the LuceneSearchProvider and which classes to override in order to configure Query Parser to allow leading wildcard search.

Let me know about your decision! 
Thanks for sharing this valuable feedback!

Best wishes,

Milena
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Posted by Community Admin on 20-Mar-2013 00:00

Hi,

I need this functionality. Can you provide me with the details mentioned on how to replace the LuceneSearchProvider and which classes to override?

Thanks,
Steve

Posted by Community Admin on 25-Mar-2013 00:00

Hello Jerami,

Please take a look at this blog post for information how to replace the Lucene provider:

www.sitefinity.com/.../search_index_with_custom_fields_in_sitefinity_4

Regards,
Jen Peleva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed