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

File search #558

Closed
mario opened this issue Jan 19, 2017 · 27 comments
Closed

File search #558

mario opened this issue Jan 19, 2017 · 27 comments

Comments

@mario
Copy link
Contributor

mario commented Jan 19, 2017

Implement file search which would be similar to what the server frontend does. I'd definitely like to know more about this so involving @MorrisJobke, @tobiasKaminsky and @AndyScherzinger. Feel free to suggest whoever you think can clarify more on the API (endpoints, data to send, returned data) and the requirements of this task.

@nextcloud/designers - I'd appreciate your input and mockups on how this should work.

@jancborchardt
Copy link
Member

jancborchardt commented Jan 19, 2017

Regarding interaction design, it should be the same as the search we do right now, with the icon on top and integrated. But instead of only filtering the current folder (which should of course be prioritized to be very quick) other folders should be searched too. Basically exactly like we do on the server.

@tobiasKaminsky
Copy link
Member

@jancborchardt two more questions:

  • filtering is immediately, but searching should have either a) some delay or b) require user interaction as it is data intensive and maybe not wanted by the user?
  • should search also be in the navigation drawer (I think yes, as it promotes this feature).

The search results should show a list with

  • name
  • folder name
  • when clicking on it it should directly open this file (just like clicking on it in the file list)
  • long clicking on the file should show "go to folder" (?)

as reference the current web view:

bildschirmfoto 2017-01-11 um 14 52 07

search api will be done by @MorrisJobke

@tobiasKaminsky
Copy link
Member

For server tracking: nextcloud/server#676

@eppfel
Copy link
Member

eppfel commented Jan 20, 2017

should search also be in the navigation drawer (I think yes, as it promotes this feature).

Actually, when I open files, there is a nice search icon beside the three dot menu. This is most prominent. IMO no need for cluttering the sidebar with another option.


Moved discussion about filters to --> #563

@tobiasKaminsky
Copy link
Member

Do we need a dedicated issue for filter view?

Yes please!
Please always only one topic per issue (and later also only one issue per PR).

@supportreq
Copy link

@mario @tobiasKaminsky on the android app we already have a filter which will search only in the opened directories. for the time being can we have a way in which we can atleast filter in all folders and not just the folders which are opened by the user.. This is an important feature which is pending since years and with filter the major searching file pain is resolved.. please share your thoughts..

@mario
Copy link
Contributor Author

mario commented Jan 27, 2017

@supportreq I've implemented the feature you requested as a playground, but really the best way to go forward with this is proper search based on the server API so that's the only thing that will go in the app. I'm hoping we can have this in for 1.5, but no promises. Once the actual search works, I am sure you will be more than happy with it.

@tobiasKaminsky
Copy link
Member

@supportreq a "deep filter" like you suggest is not working as e.g. the sub-sub-folder might already have changed on the server and the app is not in sync with it, or imagine that someone is sharing a folder with you. In both cases the app will only "know" once you have entered these folders.
So the only valid solution is to use a real server-wide search like on the webUI.

@supportreq
Copy link

@mario with the server api now live are we having an integration soon?

@mario
Copy link
Contributor Author

mario commented Feb 11, 2017 via email

@MorrisJobke MorrisJobke added this to the Nextcloud App 1.5.0 milestone Feb 11, 2017
@jancborchardt
Copy link
Member

@tobiasKaminsky regarding your questions:

filtering is immediately, but searching should have either a) some delay or b) require user interaction as it is data intensive and maybe not wanted by the user?

It can have some delay, but should be in the same view, below the other results, as it is on the server. No extra user interaction. It’s not sooo data intensive as it’s only a list of files, right?

should search also be in the navigation drawer (I think yes, as it promotes this feature).

No, as it’s in the header already. As @eppfel said too.

The search results should show a list with

  • name
  • folder name

Yep, second line will be folder path instead of the size and modified date info as normally. But same layout/design. Only show the folder path in the second line, not repeat the file name (also needs to be fixed in the server, issue opened).

  • when clicking on it it should directly open this file (just like clicking on it in the file list)

Yes.

  • long clicking on the file should show "go to folder" (?)

Long-clicking should initiate multiselect I’d say, as usual. :) No reason it shouldn’t work on search results either, like if you want to delete a bunch of searched files.

Every search result will also have the 3-dot-menu for the actions, and in there should be »Go to folder«. For folders of course this doesn’t need to be there.

Sounds good?

@tobiasKaminsky
Copy link
Member

@jancborchardt thanks for clarifying, although @mario will probably do the most of the implementation ;-)

@mario
Copy link
Contributor Author

mario commented Feb 28, 2017

Any of you two @tobiasKaminsky and @AndyScherzinger have time to do the library side of things while I work on other issues?

nextcloud/server#3360

@mario
Copy link
Contributor Author

mario commented Feb 28, 2017

Btw. this RFC seems to be supported by Jackrabbit so that should make it significantly easier since you know the library better than I do.

https://cwiki.apache.org/confluence/display/JCR/Jackrabbit+WebDAV+Library

@AndyScherzinger
Copy link
Member

Uuh sweet. Never actually did any library work myself related to connect new interfaces or extend existing ones :/ - @tobiasKaminsky could you cover this area?

@mario
Copy link
Contributor Author

mario commented Feb 28, 2017

I would appreciate it.

@MorrisJobke
Copy link
Member

PR: #742

@supportreq
Copy link

@MorrisJobke @mario is this working? by when can we test it in beta release..

@mario
Copy link
Contributor Author

mario commented Mar 24, 2017

@supportreq I don't know, hopefully soon. It works, but there are a bunch of small issues unrelated to the search itself that are really, really hard to debug.

@AndyScherzinger
Copy link
Member

how should we progress here? #742 has been implemented, does it cover everything or parts of this requirement still open? cc @mario

@mario
Copy link
Contributor Author

mario commented Mar 31, 2017

@AndyScherzinger all done as far as this issue goes.

@mario mario closed this as completed Mar 31, 2017
@supportreq
Copy link

@mario I am on the Android Dev Build from F-droid... i m not sure if search entire server is implemented on that build [server version is 12 final release].. can you confirm..

@mario
Copy link
Contributor Author

mario commented May 24, 2017

It should be working in v12. Is it not? What's the issue?

@supportreq
Copy link

@mario somehow it didnt work on wifi but on mobile data it is working.. taking some time to get the list though

@mario
Copy link
Contributor Author

mario commented May 24, 2017

That sounds strange @supportreq ? Why would it not work on wifi, but work on mobile?

@supportreq
Copy link

Uploading files is also returning with connection error on wifi [using browser it is working]

mobile data it works fine..

@mario
Copy link
Contributor Author

mario commented May 24, 2017

o.o

Do you have a special wifi connection? Capture portal or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants