Search function in c# - asp.net

I am trying to create a search page which searches the user given input against the meta data in the html files and shows the results accordingly, in short a simple search via metadata.
So far i have succeeded in getting the meta tags of the files. but unable to think any further how to get the relative comparison of the user given string and the meta data and sort the links according to the highest relevancy.
Any help would be great. Thanks in advance

Create search engine for site in asp .net c#

Related

Can we use external user input as filters in data studio for google analytics data source

I'm creating a report in google data studio using google analytics data source. Now i want to use the filers in the page setting as an external input. So user can input the filter string and can see the data. Somehow i need to pass the string to the data studio so the report will be generated on the basis of that filter.
I appreciate any small help, thanks.
If i were you I would make the input in Google Sheets and direct string to there.
NExt step is link the string to Google Datastudio via "Add data". Even if it is only one cell it should work. Now you can try to somehow make the filter auto select this data and there you go.

How to retrieve a list using Wikidata's web API?

I need to simply retrieve this footballers list in JSON format :
https://en.wikipedia.org/wiki/List_of_footballers_in_England_by_number_of_league_appearances
So i'm trying out this wikidata query ( with the wikidata ID linked to this page):
https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&ids=Q6620948
But i can see no footballer name in the result , only a few descriptions, that's all !
That list isn't actually stored in Wikidata. It's only stored as human edited text on the Wikipedia page.
You can access that content by either using the Wikipedia API or data dumps. You could also just use generic web scraping tools.

form in wordpress that writes to many tables (with different columns)

Currently, I'm using tablepress to output different info using a table format. I want users to be able to add to existing information. I need a form in wordpress that saves user posts to these different tables. How should I go about this? Sorry if I sound stupid but I'm soft on html.
Thanks.
If you want to insert in posts table using custom form, you can use wp_insert_post().
This function inserts posts (and pages) in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. It takes an object as its argument and returns the post ID of the created post (or 0 if there is an error).
Reference : http://codex.wordpress.org/Function_Reference/wp_insert_post

umbraco and custom system table

I have the following scenario:
My website db has a system table called "Companies", which includes an id field, companyName field, and companyImageUrl field.
How do I set up an umbraco document type for adding entries to this table ?
Maybe I shouldn't use a custom table at all ?
Thanks.
As far as I know, Umbraco doesn't support what you want to do out of the box (mapping a document type to a table that isn't part of the umbraco core).
One approach that might work is to create an action handler that syncs a Company doc type to your table when creating a node of that type.
It's a bit of a hack though. I've found that I've very rarely needed to create custom tables. What exactly are you trying to do with it? My guess is that you don't really need it and would be better off working with a doc type instead. Umbraco provides a variety of ways to get and act upon doc types from within custom C# code (check out the umbraco.NodeFactory namespace). You'll also get the added benefit of being able to easily interact with these nodes from XSLT/Razor.

passing values to a custom script in wordpress via url

I m customizing cforms plugin in wordpress and i have added a report that fetch all records from database and display them in a table. This is how reports link look like.
http://localhost/er/wp-admin/admin.php?page=cforms/cforms-report.php
Now i want to make a link for each record in each row to delete a record. for this i have passed record's id to my script like this.
http://localhost/er/wp-admin/admin.php?page=cforms/cforms-report.php?id=12
Also tried this
http://localhost/er/wp-admin/admin.php?page=cforms/cforms-report.php/12
in both cases i get this on clicking delete link.
You do not have sufficient permissions to access this page.
Kindly tell me how can i GET values in my script from url.
Thanks
anyone looking forward to this kind of silly question can get help from this answer lols.. all you have to do is
http://localhost/er/wp-admin/admin.php?page=cforms/cforms-report.php&id=12
and you can get id in your script.. This was a very basic mistake and i could not figure out for hours.

Resources