Topic on Extension talk:CirrusSearch

Cirrus search not showing auto suggest/auto complete in search engine

7
Pooja2425 (talkcontribs)

Hi Using these,

MediaWiki 1.35.1
PHP 7.4.15 (apache2handler)
MySQL 8.0.25
Elasticsearch 6.5.4

i have integarted cirrus search with elastic search , Now ima getting results if i hit enter on the search engine.


Search engine not giving me auto suggestion when typing into search engine,

showing error in console

{"error":{"code":"toomanyvalues","info":"Too many values supplied for parameter \"namespace\".

The limit is 50.","limit":50,"lowlimit":50,"highlimit":500,

Pls suggest..

Ciencia Al Poder (talkcontribs)

This seems a reply to an API query. Can you post here the api request URL, or at least the parameters?

Pooja2425 (talkcontribs)

Request URL: http://wiki/api.php?action=opensearch&format=json&formatversion=2&search=test&namespace=0%7C2%7C4%7C12%7C202%7C208%7C300%7C302%7C304%7C306%7C308%7C310%7C312%7C314%7C316%7C318%7C320%7C322%7C324%7C326%7C328%7C330%7C332%7C334%7C336%7C338%7C340%7C342%7C346%7C348%7C350%7C352%7C354%7C356%7C358%7C360%7C364%7C368%7C370%7C372%7C374%7C378%7C380%7C382%7C384%7C386%7C388%7C390%7C392%7C396%7C400%7C402%7C404%7C406%7C408%7C410%7C418%7C422%7C424%7C428%7C434%7C436%7C440%7C442%7C444%7C448%7C450%7C452%7C454%7C456%7C458%7C460%7C462%7C464%7C466%7C468%7C470%7C472%7C474%7C476&limit=10

Pooja2425 (talkcontribs)

Actually iam getting desired results after hitting enter into search box, no auto suggestion are there.

pls help

Ciencia Al Poder (talkcontribs)

The list of namespaces that display that query is: 0|2|4|12|202|208|300|302|304|306|308|310|312|314|316|318|320|322|324|326|328|330|332|334|336|338|340|342|346|348|350|352|354|356|358|360|364|368|370|372|374|378|380|382|384|386|388|390|392|396|400|402|404|406|408|410|418|422|424|428|434|436|440|442|444|448|450|452|454|456|458|460|462|464|466|468|470|472|474|476

You have a list of 80 namespaces to search :O That's not supported.

This post was hidden by Pooja2425 (history)
Pooja2425 (talkcontribs)

Hi @Ciencia Al Poder

How do I limit these namespaces of Search :O

When i try to type anything in my search box. Automatically iam getting below in request. How to limit these..ie. 10 0|2|4|12|202|208|300|302|304|306|308|310|312|314|316|318|320|322|324|326|328|330|332|334|336|338|340|342|346|348|350|352|354|356|358|360|364|368|370|372|374|378|380|382|384|386|388|390|392|396|400|402|404|406|408|410|418|422|424|428|434|436|440|442|444|448|450|452|454|456|458|460|462|464|466|468|470|472|474|476

Reply to "Cirrus search not showing auto suggest/auto complete in search engine"