I think we should remove wikisearchsuggestion. I was initially trying to
get suggestions from wiki and then get the page summary from each of the
suggestions. But later found that they had 'query' api with a request of
'snippet' of the page content. And yes, en.wikipedia.org refers to english
format. If we just use wikipedia.org/wiki/blablabla, it simply gets
redirect to en.wikipedia.org/wiki/blablabl. So, I directly used
en.wikipedia.org/blablabla.... saves time.



On Mon, Sep 30, 2013 at 8:45 PM, Kshitij Raj Lohani <
notifications@github.com> wrote:

> In js/wiki.js:
>
> > +						html: '<a href="http://en.wikipedia.org/wiki/' + pages[page].title + '">' + pages[page].title + '</a>'
> > +					}).appendTo(searchResultWrapper);
> > +					var searchResultSnippet = $('<div/>', {
> > +						class: 'searchResultSnippet',
> > +						html: pages[page].snippet
> > +					}).appendTo(searchResultWrapper);
> > +					elem.append(searchResultWrapper);
> > +				}
> > +			} else {
> > +				elem.html('No results found on wikipedia.')
> > +			}
> > +		}
> > +	});
> > +}
> > +
> > +/*getWikiSearchSuggestions = function(q) {
>
> what is the difference betweek wikisearch and getwikisearchsuggestion ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/krinjal/ratnapark/pull/2/files#r6659818>
> .
>



-- 
Hilson Shrestha