|
Dishant commented
11 years ago
Hi, |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi doug, And the threads were not running: I am pasting the little snapshot of start.log: 826856 [Thread-22] ERROR com.perforce.search.manager.DirectoryScannerThread - Server connection exception, recycling //depot/lem/ |
Reply ·0 | |
|
|
+the Apache Tika parser in this version to hang the CPU. If +you have similar problems or expect to index a lot of media +files you might consider an earlier version of Solr (Solr 4.3.1 +used Apache Tika 1.3 which worked for me), replacing the Tika +jar with version 1.5 (unreleased) or using the ...ignoredExtensions
phopkins (on README, line 184) commented
11 years ago
Hey Doug, where is the ignoredExtensions.txt file supposed to live? having trouble with TTF files right now |
Reply ·0 | |
|
|
|
+the Apache Tika parser in this version to hang the CPU. If +you have similar problems or expect to index a lot of media +files you might consider an earlier version of Solr (Solr 4.3.1 +used Apache Tika 1.3 which worked for me), replacing the Tika +jar with version 1.5 (unreleased) or using the ...ignoredExtensions
Doug Scheirer (on README, line 184) commented
11 years ago
Not sure where the relative path would be rooted from, I tend to use absolute paths: The file format is pretty simple, e.g.: |
Reply ·0 | |
|
|
|
phopkins commented
11 years ago
Gave it a go, still ERROR'n up on ttf files but I have them ignored. I'll have a dig around and see if I can find where the ignore file is loaded. My TTF error sounds similar to your old mp3 problem, java process is maxxing out and seems to be stalled. |
Reply ·0 | |
|
|
|
+ } + + @Override + public Set<String> getIgnoredExtensions() { + String file = getKey("ignoredExtensions", null);
Doug Scheirer (on ConfigurationImpl.java, line 127) commented
11 years ago
@phopkins, here is the loading code for ignored extensions. If the file couldn't be found it should be logged in the debug log (assuming log4j is configured for debug) |
Reply ·0 | |
|
|
|
phopkins commented
11 years ago
OK weird, I added the .ttf directly to the defaults in this file and it still threw up errors but not as many. Doing a search I found http://goo.gl/Vqnso8 that tika might throw TTF errors on other types of files, .mdb for example. unfortunately the log output doesn't say what file it excepts on. I might hand it off to one of our java guys, see if he can see whats going on, I'm a bit illiterate . |
Reply ·0 | |
|
|
|
phopkins commented
11 years ago
i kicked off a discussion thread here http://forums.perforce.com/index.php?/topic/3065-p4search-helper-thread/ to keep the swarm noise down. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
hey doug, how can i directly download total p4 search directory? please help me asap... thanks |
Reply ·0 | |
|
|
|
Doug Scheirer commented
11 years ago
Hi @Dishant, Not entirely sure what you mean here. If you mean all of the components required to run, build.sh and install.sh should work (they download relevant jetty and solr versions), but I think there is a newer version of solr that @phopkins updated in his branch that I have not yet integrated. |
Reply ·0 | |
|
|
|
Matt Attaway commented
11 years ago
@Dishant You can sync the code by putting //guest/doug_scheirer/p4-search/search in your client spec and syncing the files. You have read access to everything here in the Workshop. If you want your own copy to work on and modify you can use integrate from the command line or P4V to branch your own copy. Feel free to contact me here or on the forums if you have any questions. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi Matt, Thanks. What is the P4PORT I need to use to sync from //guest/doug_scheirer/p4-search/search Thanks |
Reply ·0 | |
|
|
|
Matt Attaway commented
11 years ago
workshop.perforce.com:1666 is the P4PORT. You can use your Swarm login. If you want to make changes you can branch the code into your part of the server, or just sync and use it. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Thanks @matt_attaway: i ran build.sh and then install.sh but is giving this error: "Setting up p4-search... Thanks, |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
I have succesfully built and installed the p4 search in my system. Although it is giving "500 - Generic server error". when i search. also please tell me what is "SEARCH_TOKEN="MY-UUID-STYLE-TOKEN"; in your trigger script? |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi Doug, I have looked at the start.log file, looks like the code is not working properly. Is it because my perforce server is on windows? when we execute response from solr it gives null pointer exception and indexer files is also giving errors. I am pasting snapshot from start.log: 826856 [Thread-22] ERROR com.perforce.search.manager.DirectoryScannerThread - Server connection exception, recycling //depot/lem/ |
Reply ·0 | |
|
|
|
Doug Scheirer commented
11 years ago
@Dishant - |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
@doug_scheirer & @matt_attaway: Thanks both of you for guiding me through this. Your input was very helpful. And the search tool is working fine. :) |
Reply ·0 | |
|
|
|
Matt Attaway commented
11 years ago
That is great to hear! If you have any other questions please feel free to join the thread here on our forums. http://forums.perforce.com/index.php?/topic/3065-p4search-helper-thread/ |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Now that the search is running fine on my local host perforce. But the problem is when i click at the output "filename": it is opening http://swarm.perforce.com/files/depot/path/filename?v=1 and what i need is file content from localhost perforce. Please guide me what i need to modify. Your help is very much appreciated. |
Reply ·0 | |
|
|
|
Doug Scheirer commented
11 years ago
The link locations are configurable in p4-search's properties file. p4-search doesn't attempt to do rendering or navigation as we already have a number of fine products that do that very thing. Configuration options exist for Swarm, P4web, and Commons links: GUI configcom.perforce.search.commonsURL=https://commons.perforce.com/com.perforce.search.swarmURL=http://swarm.perforce.com/com.perforce.search.p4webURL=http://p4web.perforce.com/ |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
still not able to configure p4webURL to my local host. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi, @Doug I was not able to retrieve results that i got the previous day, due to some changes in test p4 server IP address. I think there is something to do with counters or index user that p4search is creating bu itself. Please guide me what is the proper fuctionality. When I recerated the p4 server with different port, it was working fine then. Thank you for your time.. :) |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
HI, @matt_attaway, please reply if you have anwer for the above queries. |
Reply ·0 | |
|
|
|
phopkins commented
11 years ago
@Dishant I think you need to continue your questions in the forum, http://forums.perforce.com/index.php?/topic/3065-p4search-helper-thread/ swarm is not a good discussion space, it ends up spamming a lot of people. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi @phopkins I was registering on the thread you mentioned, but it is giving me some error: "The following errors were found: please guide me through this. |
Reply ·0 | |
|
|
|
phopkins commented
11 years ago
Sounds like you skipped the login anti spam check. How about you make a post here, that might be easier for you. https://plus.google.com/u/0/communities/113023703419583382137 |
Reply ·0 | |
|
|
|
Matt Attaway commented
11 years ago
I'm not sure it spams any more fewer people, but the forums are a better place to handle questions like this. 😄 @dishant make sure to read the screen carefully when you're creating your account. There are a couple different security questions but they are pretty straightforward. As @phphopkins suggest G+ is great too. |
Reply ·0 | |
|
|
|
Dishant commented
11 years ago
Hi all, I want certain enhancements in the p4 search, when showing off results from the solr, i also want "modifiedby" field in the table. i have tried changing search.js but not working.. please guide me through this. any help will be appretiated... thanks |
Reply ·0 | |
|