google search appliance blacklist suggestion - search-engine

I need to block one suggestion from Google search appliance(GSA), and I have added that in the blacklist and also reset the suggestions so that it will regenerate the query suggestions and will not include that bad word.
The term I am searching is "banding the chicks", and Did you mean... comes up with the suggestion "banging the chicks". So I added "banging" to the blacklist suggestion, reset the suggestions and waited till 24 hours, but it didn't work.
Is there any particular way I need to add "banging" to the blacklist?
Any thoughts or help is appreciated!

The blacklist feature is not used for spelling-suggestions, but it's for AutoSuggest-functionality. You can blacklist words or patterns from AutoSuggest, but not for spelling suggestions.
However, with a small frontend tweak you can accomplish the same. Please follow these steps!

Related

Trying to search reddit submissions and subreddits based on comment word search

Can you search for submissions (over all subreddits) to find those having a particular keyword use in the discussions i.e comments of that submission?
I am trying to :
Collect all the submission ids and hence the comments that have this word say "awesome".
I would also like to know if there are some subreddits that are likely to have this word used often based on the comments?
I have already looked at PRAW & PSAW documentation and even found the exact solution to this problem i.e the aggs paramter but apparently it is not working at the moment? Every query gives me a JSON that is empty(with the same code as in the documentation)?
I was wondering if there are alternatives or workarounds to this? Or something that could solve my problem.
Thanks in advance for your time.

Google Analytics filters. Subsetting results to specific URLs with no parameters or question marks

I seem to not being lucky searching for an understandable anwer in this forum, so I decided to make my own question. I apoplogyze for any existing post that I could have missed.
Briefly, I want to know statistics from certain pages that I can address by setting a filter accounting the URL. The problem is that I can also found some visits that were made while administering the site (joomla) which show some queries.
I would like to get results from pages under, let's say, /index.php/certain_group/
(e.g.
/index.php/certain_group/this-page,
/index.php/certain/group/another-page)*
but not those like
/index.php/certain/group/another-page?view=form&layout=edit&a_id=89&return=aHR0cCUzQSUyR...bla bla
I have tried lost of combinations in http://www.analyticsmarket.com/freetools/regex-tester
I am being able to find only thos that I do not want, I mean, if I use "/index.php/group/.\?.$"
I get
/index.php/certain/group/another-page?view=form&layout=edit&a_id=89&return=aHR0cCUzQSUyR...bla bla
Any clue?
Thanks in advance

How do I retain a fixed drop down value in creating a link for submit?

I am new to the community and I am in no way an advanced programmer. I am a support in a company and would like to make our job easy in any way I can. In regards to this, could you please help me with my problem?
I have created a link wherein I want to automatically disable a program, but to do so, all values must be present. And in order to do that, I have to inspect the elements of the page and include each item in the link I am making. Here is an example below.
(WEBSITE)frmTarget=PROGRAM&frmOption=EDIT&program_ident=xxxxx&status=D&labor_console_mode=D
With the link provided above, the labor_console_mode part is what I want to retain. Each program_ident has a different value when it comes to the labor_console_mode part; sometimes it has A value, sometimes it has C value. My question is, how do I retain the value of the labor_console_mode part without changing its value in the link and being able to submit the whole URL.
Let us say:
C=Scheduled
A=Auto
D=Disabled
Something like, labor_console_mode=selected is what I thought would work but it didn't. If I remove it from the equation, the page loads saying that the labor_console_mode is missing. It frustrates me as to why I cannot find any answers online or if I am wrongly searching for the phrase. Please help me. I would greatly appreciate any help I can get regarding this matter.
Thank you!

Display random single survey poll in side bar, show results, next poll?

We're developing an app in Rails, and want to randomly display a question to users that they haven't seen yet. Once they answer, it would show the results, and then ask if they want to answer the next question.
Has anyone done this? Is there perhaps some kind of gem that can help us, or do we have to write it from scratch?
Thanks in advance!
I've used the randumb gem for something similar. With it you can use scopes to chain your queries so you could fetch only an un_seen record (and subsequently update it to seen)
https://github.com/spilliton/randumb

How to get rid of stupid "pad" labels produced by RTML functions?

I am unlucky to be in charge of maintaining some old Yahoo! Store built using their RTML-based platform.
Recently I've noticed that HTML code generated by some RTML functions is sprinkled all over with "padding images" (or whatever is the conventional name for those 1x1 pixel images used to enforce layout). I have nothing against using such images, but... all those images are supplied with an ALT attribute like this:
<img href="http://.../image1x1.gif" alt="pad">
With all due respect to the original authors of RTML, but they must have been smoking something when they came up with this "accessibility enhancement"... :-(
Anyway, here are my questions:
Does anybody know a list of all RTML functions that generate HTML with all these "pad" images?
Is there any way to get rid of all those alt="pad" attributes without rewriting a lot of RTML code?
NB: This may sound a little cynical, but improved accessibility is not the main goal here. The main goal is to stop exposing those moronic alt="pad" attributes to Google and other smart search engines. So client-side scripting is not going to help, as far as I know.
Thank you!
P.S. Probably, most of you are really lucky and never heard of RTML. Because if somebody would establish a prize for software products based on
commercial success
------------------
usability
ratio, this RTML-based "platform" would probably win the first place.
P.P.S. Apparently someone from Yahoo! finally listened, because I can no longer find those silly "pad" tags in the RTML generated for our store. Nevertheless, one of the ideas offered in response to my original question does provide a very practical solution - not just to the original problem but to any similar problem with RTML platform. See the winning answer - it's really good.
The only way I see is to have your own website front-end that will filter whatever you want from the RTML site....
for example, your rtml site is at http://rtmlusglysite.yahoo.com/store/XYZ01134 , you could host a simple PHP front-end at http:://www.example.com that would be acting like a "filtering" HTTP web proxy, so http://rtmlusglysite.yahoo.com/store/XYZ01134/item1234.rtml would be accessed by http://www.example.com/item1234.html
It's not an ideal solution, but it should work, and you could do some more fancy stuff.
Nice try from the other posters, but there is a very simple RTML command that will do it. . .
TEXT PAT-SUBST s GRAB
MULTI
HEAD
BODY
TEXT #var-with-alt-tag-equals-pad-in-it
frompat "alt=\"pad\""
topat ""
The above RTML will find all instances of alt="pad" and replace it with nothing.
Well you're right on RTML being relatively untraveled :)
Do you have a way to add your own attributes to these images tags? If so, would it be possible to override the alt attribute? If you specify alt="", I would think that would override Yahoo's... Otherwise consider putting a useful alt tag in there for the blind and dialup types.
It's the first time I'm hearing about this platform, but here is an idea: if you can add javascript to the pages, you could write a function that will run after the page has loaded and remove all the alt="pad" attributes from the page.
Unfortunately this solutions works only with browsers that know about scripting, so lynx or some other text based browsers might not support it.
I have shared a link official RTML guide from yahoo. Hope it will help. Thanks!
List of available RTML books and resources

Resources