uCoz Community » uCoz Modules » Additional Features » Site search (And everything that is related to it)
Site search
Natashko
Posts: 3366
Reputation: 171

Message # 1 | 2:41 PM

uCoz Web Service has its own Site search.

You do not have to install this module. It is installed by default and it is a required module.
Attention: it is impossible to deinstall the Site Search module!

Though it is possible to set it up or not to use it at all.

You can select the modules to search in:


We would like to draw your attention to the setting

Supplement search results by tags with the results of site search:
If the checkbox is tagged, the site search results will be shown after the search results by tags.
Here is how the site search results will look for the request: CINEMA

And this is the way the search results by the tag CINEMA will look (You will see them in addition with site search results).

Where the first result is the search result by the tag CINEMA. And the rest of he results are site search results for the request CINEMA.
(This is an example with the default settings of Appearance of entries. "Entry brief description" in the modules is also disabled)


It is not difficult to distinguish the search results by the tag from the site search results. The appearance of the site search entries is the following: module name + the date (day-month-year the time of adding the entry).

The appearance of the search entries by the tag is the following: module name + the title of the module category (nesting depth of an entry. The code $ENTRY_DEPTH$ is responsible for that)+the date when the entry was added (day.month.year).

It is also possible to distinguish the search results by the tag from the site search results with a help of the URL of the request:

The appearance of the request URL of the site search results is the following: http://siteaddress/search/?q=
The appearance of the request URL of the search results by the tag is the following: http://siteaddress/search/

If the checkbox “Supplement search results by tags with the results of site search:” is not tagged:
the search by tag will show the results for the request of this tag only. And the site search will show the results on the search requests only.

Site search module has design customization feature.

Search page – will help you to customize the design of the page with the results of the site search and the search by tags.
Appearance of entries – will help you to customize the appearance of search results entries.

Sitemap

Sitemap is generated automatically on each website now. Users do not have to create it any more. Sitemap files are updated automatically, approximately once a day (depends on how often the website is updated). URLs of Sitemap files are written in the default robots.txt file, which we advise not to change.
You can get URLs of the Sitemap in Control panel->Site search
Note on search forms: each site module has codes $SEARCH_FORM$ and $MODULE_SEARCH_FORM$
It means that either the form for the indexed search on the whole website ($SEARCH_FORM$) or form to search entries of a module ($MODULE_SEARCH_FORM$) can be embedded into the template of the modules. Of course, both forms can be used simultaneously in order to search on the whole website or to search entries of a certain module.

Addition: on the websites with uID login, uNet users' bar has a site search form: Userbar->Control->Site search

Note:
  • The new entries are indexed within 10 days.
  • The entries that are deleted from the website, disappear from the search results within 14 days
  • In order to re-index the entries in the catalog manually, you need to tag the checkbox “Entry date:“ and Save without making any other changes.

See how to enable Site Search here:

Attachments: 4952405.png (26.3 Kb) · 2896905.png (1.4 Kb) · 7026367.png (7.1 Kb) · 0944180.png (9.3 Kb) · 8864910.png (1.5 Kb)
Sunny
Posts: 9296
Reputation: 456

Message # 286 | 1:40 PM
Quote (carloscompu)
Sunny Yea ,Change the hight And the font Sizeof the text inside the search bar


You need to change this part size="20"

Quote (carloscompu)
And if you can I would like to change the submit button, instead of Search I would like to put an image(example a;a magnifing glass like the symbol of search


Instead of

Code
<input type="submit" class="searchSbmFl" name="sfSbm" value="Buscar Post" />


you need to use

Code
<input type="submit" class="searchSbmFl" name="sfSbm" value="Buscar Post" style="background: url(URL);" />


(don't forget to replace URL by your image link)

I'm not active on the forum anymore. Please contact other forum staff.
carloscompu
Posts: 246
Reputation: 1

Message # 287 | 7:43 PM
the search preview image dont work in my site

I cant get it to funtion

http://porsiempre.do.am/search/?q=Carlos
Sunny
Posts: 9296
Reputation: 456

Message # 288 | 1:30 PM
carloscompu, you need to include $IMAGE1$ etc. into brief description, and the images will be displayed.
I'm not active on the forum anymore. Please contact other forum staff.
carloscompu
Posts: 246
Reputation: 1

Message # 289 | 3:48 PM
I added $IMAGE1$ to the brief and still no result.
The code dont even work in the massage box
What do I need
Ive change the Body of the search for...
Quote
<div id="searchText">$BODY$</div>
<script type="text/javascript">
$('#searchText div.eTitle a').each(function(){var c=$(this),cont=c.parents('td:eq(0)').find('div.eMessage'),url=this.href; if(/board/i.test(url.toLowerCase())){ $.get(url,{},function(a){var b=$(a).find('.eMessage img')||$(a).find('.eText img'),src=null; for(var i=0;i<b.length;i++){if(!/ucoz.net/i.test(b[i].src)){ src=b[i].src;cont.prepend($('<img/>').attr('src',src).addClass('preview'));break}}})}; });
</script>


I added this to the board full text and comment
Quote
<div class="eMessage"><img src="$IMG_URL1$" title="$TITLE$" alt="" height="50px" width="50px" style=""></div>


and I added this to Brief and Message to do testing
Quote
http://porsiempre.do.am/_bd/0/39973754.jpg
<img src="http://porsiempre.do.am/_bd/0/39973754.jpg" title="$TITLE$" alt="" height="50px" width="50px" style="">

<div class="eMessage"><img src="http://porsiempre.do.am/_bd/0/39973754.jpg" title="$TITLE$" alt="" height="50px" width="50px" style=""></div>
$IMG_URL1$
http://porsiempre.do.am/_bd/0/39973754.jpg
<img src="$IMG_URL1$" title="$TITLE$" alt="" height="50px" width="50px" style="">

<div class="eMessage"><img src="$IMG_URL1$" title="$TITLE$" alt="" height="50px" width="50px" style=""></div>


As you can see i tested it in all forms but no result

IS there something Im missing

Im using the board module for this test
This is the example link...
http://porsiempre.do.am/board/historial/carlos_robledo/1-1-0-1
Post edited by carloscompu - Thursday, 2013-04-11, 4:09 PM
Sunny
Posts: 9296
Reputation: 456

Message # 290 | 11:34 AM
carloscompu, when you are testing the search module you should remember that to see the results you need to wait ~4 days, because the entries need to be reindexed by the search module. Your code should work fine. But you will see the changed only in ~4 days after you made them.
I'm not active on the forum anymore. Please contact other forum staff.
carloscompu
Posts: 246
Reputation: 1

Message # 291 | 2:22 PM
k Thanks Ill wait But the code is alright,right?
khen
Posts: 475
Reputation: 13

Message # 292 | 9:13 AM
How does the uCoz site search engine rank the results/entries? Could you please explain in detail? and the ranking factors?

Will an entry with many backlinks or internal links rank on the top of uCoz site search results?

Post edited by khen - Friday, 2013-06-07, 9:16 AM
Sunny
Posts: 9296
Reputation: 456

Message # 293 | 1:05 PM
khen, we can't disclose the actual algorithms but I can say that the general principles are being used: number of repetitions, proximity of words, their position in the text etc.
I'm not active on the forum anymore. Please contact other forum staff.
Fleur
Posts: 6
Reputation: 0

Message # 294 | 3:02 PM
hello

I'm trying to make the 'site search' function to work, but I'm failing. I read a lot of posts on the forum, but I cannot find the right solution.
The only thing I'd want to see happening is that when you search for a word, the search is made in the whole website. for now, it only gives results of the home page. (though all the modules are indicated).

my url is www.jeugdhulpenecm.ucoz.net

Can someone help me out?
Thanks a lot,
Fleur.
Sunny
Posts: 9296
Reputation: 456

Message # 295 | 9:28 AM
Quote (Fleur)
when you search for a word, the search is made in the whole website


That's how the Site Search module works, it searches through all modules except for the Forum module (there is a separate search feature). I don't see any problems with the search on your website, it searches in different modules. Please provide an example of an entry that cannot be found.

I'm not active on the forum anymore. Please contact other forum staff.
khen
Posts: 475
Reputation: 13

Message # 296 | 0:25 AM
Does uCoz site search also consider synonyms of the words being searched?

Why does uCoz site search index entries in 4 days? why not within the day? or in two days? The quicker the better so that site users can find or search the most updated entries they want.

If ever you have any development of the algorithms of the uCoz site search, please update us also.

Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 297 | 1:20 AM
Quote (khen)
Does uCoz site search also consider synonyms of the words being searched?


No.

Quote (khen)
Why does uCoz site search index entries in 4 days? why not within the day? or in two days? The quicker the better so that site users can find or search the most updated entries they want.


I do not know why this is exactly. As far as I am aware there are no current plans to change this - the same counts for further updates relative to the search module. I will look into it however. smile

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
gasparean
Posts: 8
Reputation: 0

Message # 298 | 4:06 AM
Hello there, I'd like to report.. My results don't show stuff by tags, dispute the fact that it is checked on settings to do so. Moreover, it browses stuff with keywords found in title parts of entries, which have been edited yet months ago. Thank you!
Sunny
Posts: 9296
Reputation: 456

Message # 299 | 9:57 AM
gasparean, provide the website address.
I'm not active on the forum anymore. Please contact other forum staff.
gasparean
Posts: 8
Reputation: 0

Message # 300 | 10:04 AM
Sunny,

gasparean.com is that. thank you
uCoz Community » uCoz Modules » Additional Features » Site search (And everything that is related to it)
Search: