Question

I want to impliment tagging system in my PHP project (same like Stackoverflow.com's tagging system). Can I use Lucene? If yes then how to use it in PHP.
Or is there any other jQuery plugin available? Please let me know.

Thanks in advance

Was it helpful?

Solution

You can create a new field in your table named "tags" and when you search on your site split the tags (lets say all the tags for each topic is separated by a ',') using split function in PHP with the character you used (in our case, comma (',')).

make a loop for each array of tags for each topic (nested loops) and search for a tag that is the same as you have searched.

hope i helped :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top