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

Searching for an URL #35

Open
RalfBarkow opened this issue Dec 12, 2019 · 7 comments
Open

Searching for an URL #35

RalfBarkow opened this issue Dec 12, 2019 · 7 comments

Comments

@RalfBarkow
Copy link

@RalfBarkow RalfBarkow commented Dec 12, 2019

Since almost 2 weeks I work with DMX every day and the current beta is very stable. I am thrilled.

A smaller issue has turned up. See this topic @ forum.dmx.systems .

I would therefore like to suggest adding a note to the documentation on how best to search for URLs.

Maybe we can add a note at https://dmx.readthedocs.io/en/latest/user.html?highlight=search#advanced-search-with-lucene saying something along the line of:

To search for an URL wrap it in " characters to form a phrase search .

@RalfBarkow

This comment has been minimized.

Copy link
Author

@RalfBarkow RalfBarkow commented Dec 12, 2019

For details about how the DMX search dialog interprets the user input see this comment: https://git.dmx.systems/dmx-platform/dmx-platform/issues/274#note_11262

@jri

This comment has been minimized.

Copy link
Owner

@jri jri commented Dec 14, 2019

To search for an URL wrap it in " characters to form a phrase search.

Note that searching for an URL is not a special case, and should not be described as such in the docs. The general point is: Lucene special characters in a search term need to be escaped. That is when you want search something that contains e.g. a - character.

See the above links mentioned by @RalfBarkow. @silke FYI

@silke

This comment has been minimized.

Copy link

@silke silke commented Dec 14, 2019

Hi @jri , do you mean quoting or really escaping?

@jri

This comment has been minimized.

Copy link
Owner

@jri jri commented Dec 14, 2019

I mean escaping. You can escape either by \ before the special character, or by phrase search (using double quoutes) "...". Note that special characters in a phrase search are escaped implicitly.

See
http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#Terms
http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#Wildcard%20Searches
http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#Escaping%20Special%20Characters

In computing "escaping" means to suppress the semantics a character would normally have. You escape the special semantics and use the character literally.

@silke

This comment has been minimized.

Copy link

@silke silke commented Dec 14, 2019

Okay, thanks for clarifying, I added it to the "Advanced Search" section, https://git.dmx.systems/dmx-platform/dmx-documentation/commit/8577a8718a91d3eeecf90ae1e09c8a13ffca7bc8 .

@RalfBarkow

This comment has been minimized.

Copy link
Author

@RalfBarkow RalfBarkow commented Dec 15, 2019

@silke Thanks for fixing this one. I'm currently looking into this: Check out our DMX Admin Documentation and will add my findings in the forum.

@RalfBarkow

This comment has been minimized.

Copy link
Author

@RalfBarkow RalfBarkow commented Dec 17, 2019

In my view, this "Searching for an URL" issue could be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.