- Notifications
You must be signed in to change notification settings - Fork 793
Replace "q" query param name with "full" #2633
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
Conversation
| So soon after 1.1 we will have to start 1.2-rc's :-) |
We don't have to merge it right away. We can wait for a while if you think that makes sense. |
tulinkry left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our "Full Search" is essentially a query supporting (almost) all search features in OpenGrok. This kind of functionality is widely used in search engines via the q parameter (or queryString, searchString or similar). Using full would go a little bit against the semantics here. So if anything, I'd change QueryBuilder.FULL to q. Also, based on @vladak thoughts he shared with me, some day there could be opengrok with just one search box (google like) where you input the query and it just magically works. In that case I'd stick with q as well.
These are just some thoughts to consider. I don't really mind in the end what is in the url.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about the css class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The css class is used for every search field and I think the proper name should be something different. However, I don't mind changing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I didn't see it that it's a common class for others as well.
I think it's not a problem. We'd stick to some consistent versioning which has some sense to our use case. I know it looks quite like a jump when it took as ages to release 1.1 but that's another story. We can shift the reindex release to the patch position and normal release to the fourth position if it looks nicer to you. Now it's the time to decide this still. It will be late soon. Second, I don't think we need rcs for minor version update, maybe just for the major. But again, let's discuss the previous paragraph. |
I completely agree if you have only one search field. However, in this case I find it just misleading.
This won't work because the index name is not
I don't think this will be anytime soon. We can change it to |
Maybe the way would be not to put defs, refs and others into the url and just combine it an use it as a q parameter. So the search would always end with
The same. Let's go on then. |
| I agree with Krystof here, that q should be used for query that laters gets magically parsed into whatever is detected my common use case is to write into FULL input box e.g. if this functionality is still preserved with this PR, then feel free to merge |
yes, it just changes |
| Please rebase with |
Done. |
| again :-D |
| merging |
I've wanted to do this for a very long time :D
Only reason why I think it might be good to keep the name is backwards compatibility. However, it does not correspond to the index name as other fields (
refs,defs,…) and is just plainly confusing.Caveats: complete reindex needed (because of the xrefs) and old links will not work.
If you do not like this change then feel free to close this ;)
Thanks :)