Skip to content

Conversation

@ahornace
Copy link
Contributor

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 :)

@coveralls
Copy link

coveralls commented Jan 18, 2019

@vladak
Copy link
Member

vladak commented Jan 18, 2019

So soon after 1.1 we will have to start 1.2-rc's :-)

@ahornace
Copy link
Contributor Author

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.

Copy link
Contributor

@tulinkry tulinkry left a 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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@tulinkry
Copy link
Contributor

So soon after 1.1 we will have to start 1.2-rc's :-)

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.

@ahornace
Copy link
Contributor Author

ahornace commented Jan 19, 2019

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

I completely agree if you have only one search field. However, in this case I find it just misleading.

So if anything, I'd change QueryBuilder.FULL to q.

This won't work because the index name is not q and changing it to q seems even worse. However, it might be a solution if we would like to be consistent.

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.

I don't think this will be anytime soon. We can change it to q then ;)

@tulinkry
Copy link
Contributor

I completely agree if you have only one search field. However, in this case I find it just misleading.

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 q=.... and that's all.

I don't think this will be anytime soon. We can change it to q then ;)

The same. Let's go on then.

@tarzanek
Copy link
Contributor

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.
foobar path:package
and this q gets parsed into full:foobar and path:package

if this functionality is still preserved with this PR, then feel free to merge

@tulinkry
Copy link
Contributor

if this functionality is still preserved with this PR, then feel free to merge

yes, it just changes q => full in the url

@vladak
Copy link
Member

vladak commented Jan 31, 2019

Please rebase with upstream/master.

@ahornace
Copy link
Contributor Author

Please rebase with upstream/master.

Done.

@tulinkry
Copy link
Contributor

again :-D

@tarzanek
Copy link
Contributor

merging

@tarzanek tarzanek merged commit 895d1b2 into oracle:master Feb 10, 2019
@ahornace ahornace deleted the rename_q branch August 7, 2019 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants