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

about search #119

Closed
zhuzhujulie opened this issue Jun 4, 2017 · 6 comments
Closed

about search #119

zhuzhujulie opened this issue Jun 4, 2017 · 6 comments
Labels

Comments

@zhuzhujulie
Copy link

Hi
i read this statement below from the index.ftl:

action="/html/">

so, what do you mean "if isHtml??"
if i search something from the index page, obviously that it doesn's from the route:/html/, so where does it go, which route???

@boyter
Copy link
Owner

boyter commented Jun 4, 2017

Say you have installed searchcode server on your local machine and visit,

http://localhost:8080/

And then perform a search, you will see the Javascript search frontend. If how ever you visit

http://localhost:8080/html/

You will see the pure HTML frontend. That code is just there to know which one it is for links and the like.

@zhuzhujulie
Copy link
Author

so why do you distinguish these two kinds of implementation.??
a html search fronted and a javascript search fronted.
And do you mean if i search from "http://localhost:8080", i will search by the search_ajax.ftl??

@zhuzhujulie
Copy link
Author

Or can you tell me where is the javascript that implements the search from "http://localhost:8080/"
Thank you so much~

@boyter
Copy link
Owner

boyter commented Jun 13, 2017

Sorry was away on a break so unable to respond.

Yes. They are totally different. Its mostly due to how I built things. There isn't a technical reason they are split apart and they may merge at some point in the future.

All the javascript lives in a single file, specifically this one https://github.com/boyter/searchcode-server/blob/master/src/main/resources/public/js/script.js

@boyter
Copy link
Owner

boyter commented Jun 14, 2017

Note there is a bug for the HTML page that was resolved in #120

If there is nothing else to ask might be worth closing this one down. Will leave it over to you and if no response close in a few days.

@boyter
Copy link
Owner

boyter commented Jun 18, 2017

Going to assume that this is resolved.

@boyter boyter closed this as completed Jun 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants