Getting Started

This section explains how to set up Ajax Live search.

Installation


To install this WordPress search plugin; visit your admin dashboard then click on plugins > add new > upload then upload the file you downloaded after purchasing a license. After WordPress installs the plugin; click on activate now to activate and start searching.

Setting up the environment


Before you can start searching, Ajax Live Search will first need to index your posts.

During this process, your site may start slowing down but after a few minutes everything should be indexed and back to normal.

However; there are a couple of things you can do to speed up this process.

1. Start by increasing your memory limit and maximum excecution time to x3 the current amount.

2. Then, on the Ajax Live Search settings page, click on the indexing tab and then increase the value of batches to a higher number (Preferably 1/5 of the total number of your posts).

3. Continue browsing your site, and after everything is indexed, reset everything back to normal.

Adding compatibility to your theme


Before ajax and live search features take effect on your site; you may have to make some changes to your search template. In your admin dashboard, locate the appearance menu link and select editor.

Select your active theme and locate the file that renders search results. This is usually named search.php .

Click to edit, then add the following code immeadiately before the line that says if ( have_posts() ) :.

 if ( function_exists('als_ajax_init') ) {
			
	als_ajax_init();
			
}
					

Next; scroll down the page until you enter the while loop, then copy the file name that appears between get_template_part()

In the official twentysixteen theme, this file is usually named template-parts/content-search

Finally, open the ajax live search settings page and click on the searching tab. Enable ajax/live search then scroll down to the template file field and insert the name that you copied in the above step.

Ajax Live Search Theme compatibility

If you are unable to do make this work; the don't hesitate to contact one of our agents; they will be more than willing to set it up for you for $50 only.

A few more tips


1. Make sure that you have enabled caching and that the maximum cache time is set to a number relative to your posting frequency.

2. If you enable autocompletes; select Google as the engine (Or YouTube if you have a media/news site) so as to decrease server load. If you must use the local engine; then make sure to enable caching.

3. Edit the autocomplete and snippet look to match your site appearance.

4. Giving your titles and permalinks more weight will ensure that the most relevant results appear at the top.

5. Query correction will only work if there is a good amount of previous searches.

6. To prevent most of the problems; make sure that you have at least 10 posts published.

Searching


You can search using the operators below.

1. + A leading plus sign indicates that this word must be present.

2. - A leading minus sign indicates that this word must not be present in any of the returned results.

3. > Indicates that this word should be given more weight.

4. ~ Indicates that this words weight should be negated but not removed. See 2 above.

5. * When you append an asterisk to a word; we match all words beginning with the value before the asterisk.

6. "" Returns results that contain the phrase in the parenthesis and in the same order.

7. author_in: Comma separated Ids of authors whose posts should be searched.

8. author: or @ The username of an author whose posts should be searched.

9. author_not_in: Comma separated Ids of authors whose posts should be excluded.

10. cat: or category_in Comma separated list ids of categories to search.

11. category: Comma, "-" or "+" separated list of category slugs to search in. Use comma to get posts from any of the categories. Use "+" to fetch posts that appear in all categories. Use "-" to exclude posts from the given category.

12. tagged: Comma or "+" separated list of tag slugs to search in. Use comma to get posts with any of those tags. Use "+" to fetch posts that have all those tags.

13. post_types: comma separated list of post types to search. The post types given should be the same as those stated in your settings page as searchable.

14. before: An english date format to use, e.g, last week, 2 months ago, January 1st, 2013 etc. Enclose in quotes. Checkout a list of all available formats here. This query returns posts published before the given date.

15. after: An english date format to use, e.g, last week, 2 months ago, January 1st, 2013 etc. Enclose in quotes. Checkout a list of all available formats here. This query returns posts published after the given date.

Viewing search statistics


Point your mouse to ajax live search and click Statistics from the dropdown menu.

You will then see a table of past searches. If you prefer graphs; click on the graphs tab.

You can also download them in csv format by clicking the blue button to the right, and then either analyse them using your favourite spreadsheet or upload them to Google Keyword planner and use it to brainstorm your next post ideas.

I'm Sold Out.
Go Premium.

Buy aLs Premium!

We new friends!