I want to develop a web application that will use the current AWN, and provide the user to obtain semantic results. What I require are the things that I need to know before going into implementation of the system. My purpose is to do semantic search in the Holy Quran. Any help will be appreciated in this regard.
You should do some workouts to achieve it
Step 1 :
Create a Table which has all possible words
Step 2 :
Create a php file and get your input
Step 3 :
Pass your input to the server page or another page which will compare your input with the matches
Step 4 :
Find atlest 2 matches and show the output
Ajax Call :
if(searchid!='')
{
$.ajax({
type: "POST",
url: "search.php",
data: dataString,
cache: false,
success: function(html)
{
$("#result").html(html).show();
}
});
}return false;
});
Query to be processed
"select * from quote where word like '%$q%' order by id LIMIT 2"
Here $q
is the input you give
I have created a demo for you which have the possible words like
Alhamdh, Bayan, Allah, Sunnah, Khalifa
Here is the Demo for you
The image which comes near dropdown is just for style and you can change it later on :)