TYPO3 News Search with multiple words - search

I use TYPO3 7.6.1 AND News system 4.3.0
I have a page for search and i use the "form search" and "search result" of plugin "News System".
I have some articles and one article has the title like this: "Min. Lavoro: Circ. n. 42"
If i search
"circ"
the plugin "search results" show the article.
If i search
"circ 42"
the plugin doesn't show the article in the results
How can i fix the problem?

This is not possible, because it searches for exactly this string you are submitted.
If you search for circ. n. 42, you will get a result.
In the code it uses the SQL LIKE "%{searchString}%".

Related

Safari Quick Website Search | How to tell Safari the way my full-text search works?

The Apple browser Safari has a feature called "Quick Website Search". If you write the name of a website that you have already visited in the address bar, you can search directly on the page with a space followed by a search word, e.g. "widipedia dog".
On my Typo3 website I use a Solr full-text search with auto-complete. Safari recognizes these and queries them when using the Quick Website Search. The call Safari uses looks like this:
https://www.example.com/index.php?id=0&L=0&eID=tx_solr_suggest&format=OpenSearch&q=<search-term>
It's very smart, that Safari automatically detects the search-engine, but unfortunately it's wrong. The page ID is missing. It should look like this:
https://www.example.com/index.php?id=1234&L=0&eID=tx_solr_suggest&format=OpenSearch&q=<search-term>
Even if you confirm the search, the wrong page will be displayed:
https://www.example.com/index.php?id=0&L=0&q=<search-term>
It should look like this:
https://www.example.com/index.php?id=1234&L=0&q=<search-term>
Or even better:
https://www.example.com/search/?q=<search-term>
Does anyone know how I can tell Safari what the search query should look like?
Please excuse my english.
Many thanks and best regards.
It uses the OpenSearch specification.
If you look at your source code you should have the specification linked there under a <link rel="search" element.
This resource is missing the id you want to have present (I'm not sure how TYPO3 generates it).

Joomla search in specific category

For my website I have a category which contains articles related to FAQ items. The standard search function searches the whole site and offers no personalization.
I need to search only in one specific category with a search module in Joomla , what would the easiest way to do that?
I have tried Smart Search, unchecking all other categories and indexing again. Still, results from other categories show up in the Smart Search module. Also I have seen the Filter option in the Smart Search module, but I haven't found out how that should work.
I am using Joomla 3. Any suggestions are appreciated!
It seems I have solved my question myself.
My solution was to add a filter at the Manage Smart Search page on the Search Filters tab, then choosing the category I wanted to search in.
Then, in the smart search module you choose that particular filter and you will only search in that particular category!

Joomla seblod intro text layout?

I'm using joomla 3.4.1 and seblod 3.5.0
When i make a new article using seblod, the full article layout i like it supposed to be but the intro tekst is now how we want it to be.
Full text
We want to get a little box with some information like location, hours per week and education on the right of the text like the image below
Its now not showing the niveau location and hours part but it look like this Intro layout
Here is how my admin page looks like:
I hope you guys can help me out.
Date and location arrows are not supposed to be there
SEBLOD has some manuals on their site relating to design like this - you can find it here: http://www.seblod.com/resources/manuals/designer/drag-drop-templating
Firstly, why are you using the Intro view to display your information? This view is really only used if you want to make a menu item with the native Joomla article blog view, which lists all the articles in a category. Instead of doing this, you will get better performance and results if you use a custom SEBLOD List & Search type to list your information.
If you're trying to control the layout of your information on your full article page, you should be using the Content View.
To achieve the layout you drew above, you would put your Image field in "TOP A", your Location / Date in "TOP B" and your article text in "TOP C"

How to modify opencart basic search module to a more advanced one?

I am pretty new to opencart and I want to learn how can I create a more advanced search function.
For example I have products in my store, some of them are blue and some of them are red.
How can I specify or where I can specify a product's color (but not in the title, something like an attribute)?
And after that how can I search for red products?
I do not want to search by the keywords. I want a tab where to select the color and if I choose blue the search will show me all the blue products.
I hope you understand what I wish.(and can you please give me some code examples: where to add what to add to achieve what)
Thank you!
Normally, you would use Product Tags for this (field is under Product description on Product Page in Admin > Catalog > Products). You could have problems with very short tags 3 characters or less. See this post for more info:
mysql fulltext MATCH,AGAINST returning 0 results
You would add tags to your products like: red,black,brown,leather,s,m,l,xl small, medium, large
Then you could search any of the terms
[EDIT: in response to comment #1]
I would imagine that you just type multiple terms into search box:
'brown','large'
then all products that have (any? both?) of these tags returned.
You could use a Tag cloud or similar module to display tags on your pages, also you could use these terms in search field. If you search for 'brown', all products that have this tag will be returned.
You may also consider a third party extension for a more advanced search, check Opencart site's extension section.
If you want to modify/improve the search functionality yourself, you'll need to tinker with SQL queries in catalog/model/catalog/product.php
Opencart Search is considered by many to be one of the weak points of this package. There have been discussions on Opencart forums on this matter.
Just see how it works for you with the out-of-the-box setup, then if you need more functionality, look for an extension that does what you want, hire a programmer or code it yourself.

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.

Resources