expression engine search result - expressionengine

I am facing an issue related expression engine search. Links are not correct that search result displays and my pages just getting the header and footer and content is blank to search pages.
I want my results in particular format
**In format**
1.**Result1** ***View detail***
1.**Result2** ***View detail***
How would i do that..what should i write on result code and also how would i limit the character limit to result text
My code for search results is on this link

If you links are not correct for your search results it may be that your preferences are not set correctly.
Each channel will have it's own Search Results URL preference. That's where the {auto_path}data is pulled from in your example.

Related

Page crawler index is just searching the exact word in kentico

I created a page crawler index and I'm testing all search modes, with all page types in the index content. By the way, the index is just searching for the exact word. example if I'm looking for the word "test" I must to write "test" to find it but if I search for "tes" is not finding anything.
How can I update this behavior?
You should take a look more into Analyzer types and what suits you best. If you set it to 'Subset', then it will show you results for 'tes' but also for 'est'. In this link, you can find more about them.

Kentico v9 smart search not getting results from my home page

My home page is the root node, and consists of HTML editable text and repeaters. The page types used by the repeaters have been excluded from the smart search, but editable text isn't showing in results.
Currently my path is set to: /%
Everything else seems fine, i'm getting results that i expect (minus some url alias issues), but this has be stuck.
Some ideas:
Have you used the correct Documents index type?
https://docs.kentico.com/display/K8/Defining+document+indexes
Have you selected the root page type as allowed content (probably CMS.Root)?
Is the Search Preview (located on the Search Index itself) showing the page?
David
Yes, checking for whether page type is included in the index is probably the first thing one should look out for while debugging for Search Index not returning specific page type results.

How to place search query in the URL?

With a lot of search engines, you can find the string you are searching in the URL.
However, http://drugcompare.destinationrx.com/Home.aspx does not let me do this. When I search something, the resulting URL is http://drugcompare.destinationrx.com/DrugCompare.aspx no matter what.
Is there any way I can find out whether I can search the website by adding something to the end of the URL, like "?query=searchstring" instead of using the form provided on the page? Basically I need a unique URL.
that website you pointed at uses POST to send data for its search query which means you wont be able to see or append it on the URL bar. The reason for that is either for security or the search query it generates is a complex object or too long and does not fit in a url. websites such as search engines uses GET, with that you can append your search query in the url by following the syntax it generates.

Kentico CMS: Display the phrase that was searched for on a search results page

On my search results page I would like to display the phrase that the user searched for.
For example, instead of using the title Search Results: as you can see in the screenshot, I would instead like to use the title Search Results for vitae:
Is it possible to pull in the searched word/s?
At present the title is hard coded within the web part container that surrounds the search results web part.
Screenshot of search results currently:
I have had a response back from Kentico about how to do this. See solution below.
Your Search Results: text is filled probably in the Container title
property of your smart search web part, so please just change it to
the following one:
Search Results for {?searchtext?}:
This works perfectly! {?searchtext?} pulls in the searched word.

Removing HyperLinks from search result content (Solr 3.4.0)

I'm working on Solr project.. When I search for a word say (google) ,the results will be something like this:
Google
[Sign In] [About us] google is a search engine.... etc
www.google.com
As you can see, in the search results I need to remove the Hyperlinks (About us and Sign in ) from the content.. How can I do this with Solr.
Thank you in advance.
Solr would return you back what you feed into Solr.
So if the link are stored into the field, they would be returned with the response as is.
The filtering part needs to be handled at client side.

Resources