Search as sentence in phpbb - php

I have a PHPBB. and here it's working as word wise. I have tried magento tutorial, it always separates the words, thus searching for "magento" and "tutorial". is there a possibility to search whole sentence as written?
I need to do the sentence search in my web site. If any one know this, Please help me .
Is there is any settings ? or any code..
Please help me

If you Google this particular problem, you will see one of the first results (https://www.phpbb.com/community/viewtopic.php?p=12772555) that contains the answer to your question. If indeed I am understanding your question, as "word wise" in regards to PHPBB is not very descriptive.

Related

Modification of the Prestashop 1.7 search engine, '-' '' characters,

I need help with search engine in Presta 1.7, I hope I will find a good soul to help me out.
When I want to search for example: VR-50HD, EVOLVE 50 and I type the exact same thing in the search engine, it is all perfect, same situation when I use space instead of dash (VR 50HD).
The problem occurs when phrases are without any punctuation marks like VR50HD, EVOLVE50. It's like product does not exist.
Another problem I got is with the results of the search engine. When searching VR-50HD, engine will add a lot of products where "50" appears in the product or even the category.
Regards
You can solve your first problem using aliases. Go to search preferences and enter VR50HD as an alias for VR-50HD.
Your second problem is caused by "Search within word" option. You need to disable it.
You can read more about it at Prestashop documentation, Search parameters.
Aliases will be difficult to make because there are too many products, so it will be difficult to enter the combination manually. I would prefer to modify the search engine so that it would deal with '-' and spaces.

How do I find the output for getstring listed here : https://github.com/moodle/moodle/blob/master/enrol/instances.php

I'm currently working on Moodle to change the spelling of enrol to enroll. I've completed almost every single screen except two places. Here is the code Github. To dig more, I need to know how do I find where to find the output of line 47 and what is the output? I have very little knowledge on coding, please excuse if the question is not clear
get_string(STRING_NAME, COMPONENT) takes english strings from /lang/en/COMPONENT.php
In your example, you would find the output for get_string('enrolmentinstances', 'enrol') in /lang/en/enrol.php (see https://github.com/moodle/moodle/blob/master/lang/en/enrol.php#L60 - $string['enrolmentinstances'] = 'Enrolment methods';)

List of locales for the function money_format second parameter

I want list of all the locale. For example for japan its ja_JP. Like this i want all the list for all the reigons.
setlocale(LC_MONETARY, 'ja_JP');
I am stuck at this for a long time can someone please help. I also need countries with the codes defined.
Waiting for a positive response.
You'll find your answer in here: List of All Locales and Their Short Codes?
From there, you can see which ones of them are useful for the implementation you're looking.
I'll suggest that first run a LONG search in this site and Google, then you can ask for help if you didn't found anything.
Hope this helps you.
Kind regards.

Cherry pick an australian address from a page of text

I am trying to parse a prose paragraph for anything that might resemble an address. I have a database of addresses I am matching against and these are the only addresses I am interested in. I'm using a lamp server but technology specific answers aren't what I require right now. More of a question of how.
Can anyone provide ideas? Perhaps Regex? or perhaps I should use a database of cities/states etc?
Thanks.
It looks like this question hasn't gotten answered because it's entirely unclear what the problem parameters are. If you want a more specific answer to a problem, please describe your problem more fully.
In general I would suggest aproaching a problem like this using some piece of known data ... small collection of words or formats that delieniate and address, then match on the context of those words to see if they really flesh out to a full address.

Check for misspelt words using PHP

I am using this code to create an instant search for my site...
http://woorkup.com/2010/09/13/how-to-create-your-own-instant-search/
Some of the phrases in our database our very complex and can be easily misspelt so on top of this I wanted to use spelling suggestions.
Does anyone know of any ways to offer correct spellings based on a string provided?
Any help would be greatly appreciated.
Yes there is a jQuery plugin called After the Deadline.
If someone searches for a phrase, doesn't click any of the results, and then researches with a new similar phrase (check out levenshtein()) and does click a result, write to your database the original phrase and the new phrase.
Record each time this happens. If the phrase is already matched, increment a counter for that phrase.
Then, if someone searches for a phrase that matches one of your possibly incorrect phrases (perhaps have a threshold using your counter), you can display a Did you mean to search for...? as well as the results (if any) for the incorrect phrase.
This isn't a spell check per se, but I think it would be useful to pick up on common mistakes. Unfortunately though, you probably don't have as many people to help you build an index like Google's Did you mean?
Peter Norvig has written (and explained) a fairly basic spelling corrector; which makes for a very interesting read. It's in Python, but his explanations are invaluable (He does work for Google and this is a very bare bones representation of the Google did you mean algorithm).

Categories