Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working as specified #70

Open
markcmiller86 opened this issue Aug 31, 2020 · 3 comments
Open

Not working as specified #70

markcmiller86 opened this issue Aug 31, 2020 · 3 comments
Labels
Support Support question

Comments

@markcmiller86
Copy link

Am testing features here and have some observations...

  • Each time I want to adjust a search string, the pop-up window begins with empty text, even though the RTD search text field shows the text I last entered (or there-abouts...it winds up being subtley altered. For example any + is removed).
  • Searching for endian +-silo returns 9 pages which tells me its return pages that include either endian or silo and not pages that contain endian but do not contain silo.
  • + operator seems wholly ignored. In fact, it gets removed when RTD echos the search string back
  • All these search strings return the same result chunk fortran, chunk +fortran chunk + fortran, chunk | fortran
  • -silo returns all pages (silo is used on some pages).

So, either I am wholly mis-understanding how this is supposed to work or the search functionality is not working as documented.

@stsewd
Copy link
Member

stsewd commented Aug 31, 2020

The first thing is a known problem #58.

The second and third are related to rtd itself, not the extension. We use https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#simple-query-string-syntax, so you need to escape those queries.

@stsewd stsewd added the Support Support question label Aug 31, 2020
@stsewd
Copy link
Member

stsewd commented Aug 31, 2020

Also, if you are really trying to use the + or | operators, we always run all queries with those operands already.

@markcmiller86
Copy link
Author

Apologies but I'm confused by your response.

Indeed, I am not trying to search for literal + or | or - as characters in the search results. I am trying to use those character as operators as described in the simple query string documentation you reference which explicitly states...

To use one of these characters literally, escape it with a preceding backslash ().

which I am NOT trying to do. I really want to test the behavior of those query operators and so far, my tests don't seem to be indicating those operators are really working.

Neither do they appear to work with the examples provided here. Trying it auto* redirect* (hit enter), RTD says 46 pages and auto* +-redirect* returns 50 pages). How can that be correct? The 2nd should be more restrictive than the 1rst.

Finally escaping the operators makes no difference. Is as if I didn't type them at all. Same behavior in Safari, Chrome and Firefox. If you'd like, I can upload video of behavior. Maybe from that you can tell me what I am doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants