• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Suggestion] Direct search URL?

Ahmed

Well-known member
#2
I think it's useful to have ID search, it can used by other members unless there was something updated.
 

Mike

XenForo developer
Staff member
#4
...except you're not. :)

At least for query-based searches, if you link someone to a result set, it will automatically re-perform the search for them.
 

James

Well-known member
#5
I noticed if you perform a search and change the ID it doesn't work, so as long as the ID is the same the query will continue to re-perform when clicked?

I sure hope all these search IDs aren't going to clog our database (or can be pruned) ;)
 

Cezz

Well-known member
#6
...except you're not. :)

At least for query-based searches, if you link someone to a result set, it will automatically re-perform the search for them.
What if it is for you? say you bookmark a query-based search because you check it 15-20 a day... Would it just pull the saved version or would it re-run the search each time? As we would need it to re-run the search each time...
 

Mike

XenForo developer
Staff member
#7
Search IDs are only kept around for 24 hours. But the ID data isn't needed to redo a search. It's all in the URL (that's why it's there).

If you go back to your own search, it will reuse it while it's valid. (If you go to someone else's, it will never to be used because your permissions may not be the same.)
 

Cezz

Well-known member
#8
Search IDs are only kept around for 24 hours. But the ID data isn't needed to redo a search. It's all in the URL (that's why it's there).

If you go back to your own search, it will reuse it while it's valid. (If you go to someone else's, it will never to be used because your permissions may not be the same.)
Is there any way in the current implementation to have a URL bookmarked that automatically redoes the search each time then? Like http://xenforo.com/community/search/?q=query if each time I search http://xenforo.com/community/search/ID/?q=query it brings up the same results it becomes counter productive and would mean I could only check once a day unless I manually do the search each time...
 

Mike

XenForo developer
Staff member
#9
Yes, you can run get requests on searches. Inspect the request/HTML in the search form. You can use all of the options. :)
 

Ahmed

Well-known member
#10

James

Well-known member
#12
Search IDs are only kept around for 24 hours. But the ID data isn't needed to redo a search. It's all in the URL (that's why it's there).

If you go back to your own search, it will reuse it while it's valid. (If you go to someone else's, it will never to be used because your permissions may not be the same.)
If the ID isn't needed why can't we just remove it? Like: http://xenforo.com/community/search/?q=query

I would, like Ceri, like to re-use certain queries and be able to generate our own queries without having to generate an ID. Once you familiarise yourself with the URL functions you generally just write the URL itself... just like I experimented with the user profile URL and found out that I could use this URL to get to my profile:
http://xenforo.com/community/members/908/
 

James

Well-known member
#18
It worked with your URL, I mean when I tried it before making this thread I received an error. I wonder if it was fixed rapidly...