- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sjova
Engager
03-11-2020
09:30 AM
Hi,
if my string is "asdf .\r\n asdf" and I filter on that (Add to search) I get "No results found".
Any idea how to fix this?
Thanks,
Gunnar
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manjunathmeti
Champion
03-11-2020
09:51 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sjova
Engager
03-11-2020
10:33 AM
Thanks, I just replaced \r\n with \n and then it worked fine 🙂
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manjunathmeti
Champion
03-11-2020
09:51 AM
Try this:
index=INDEXNAME FIELDNAME="asdf*asdf"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sjova
Engager
03-11-2020
09:56 AM
It is not possible to add it more globally to it affects all my queries(that have line breaks in them)?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manjunathmeti
Champion
03-11-2020
10:03 AM
It's problem with \r. Use * in place of \r. All other characters will match.
index=INDEXNAME FIELDNAME="asdf *\n asdf"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sjova
Engager
03-11-2020
10:09 AM
asdf is just an example. That string is really a stacktrace from a program. Any idea how I can do this in a general way (so that my queries work)?