--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/pL9nO6HgTa0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var to;
//while the user didn't press the enter key, we complete its words$( '#query' ).keyup(function(event){
clearTimeout(to);
to = setTimeout(autocomplete, 250 );
});
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
<messages.log>
Still does not work .I edited neo4j-wrapper.conf and chose this configuration :
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=1024# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=1024
<messages.log>
var to;
On Thu, May 23, 2013 at 11:56 PM, Anas Zakki <z.an...@gmail.com> wrote:
I fear i cannot share the entire project sources as there some privacy issues i agreed (before i started my internship)
var to;
On Thu, May 23, 2013 at 11:50 PM, Anas Zakki <z.an...@gmail.com> wrote:
I fear i cannot share the entire project sources as there some privacy issues i agreed (before i started my internship)
var to;

I have implemented a new server plugin based on the core API and upgraded to Neo4j 1.9 ( the final release)i'm still seeing pending requests in my chrome console when several requests are being sent ( even if neo4j memory is higher than 1 Gb) that end eventually by a 500 error with this message :Error [500]: Internal Server Error. Server got itself in trouble.Invalid data senti noticed also that sometimes ( for a reason that i ignore) , a 500 error is directly sent with this error message :Error [500]: Internal Server Error. Server got itself in trouble.Invalid data sent: Index `types` does not existwhile i am not using any index named "types" !?i used the commad kill -3 pid to get the logs .the server plugin :@Description("Custom Query Plugin")
public class CustomQuery extends ServerPlugin {@Description("Make a custom query and limit the results")@PluginTarget(GraphDatabaseService.class)public static Iterable<Node> makeCustomQuery(@Source GraphDatabaseService graphDb,@Description("The query to be looked for") @Parameter(name = "query") String query,@Description("Querying for ?") @Parameter(name = "searchType") String searchType,@Description("The maximum number of results.") @Parameter(name = "max") int max) {List<Node> results= new ArrayList<Node>();if(query.length()!=0 ) {
String luceneQuery="name: ("+query+"*)";String indexType= null;if(searchType.equals("airports" )){luceneQuery += " OR iata:("+query+"*)" ;indexType= "airports" ;}else if(searchType.equals("airlines" )){luceneQuery += " OR iata:("+query+"*)" ;indexType= "airlines" ;}else if(searchType.equals("cities" )){indexType= "cities" ;}else if(searchType.equals("countries" )){indexType= "countries";}IndexHits<Node> nodes=graphDb.index().forNodes(indexType).query(luceneQuery);if(nodes.size() != 0){for (Node n : nodes) {results.add(n);if (results.size()==max) break;}nodes.close();}}return results;}}the logs:ThanksOn Mon, May 27, 2013 at 1:39 PM, Anas Zakki <z.an...@gmail.com> wrote:I have implemented a new server plugin based on the core API and upgraded to Neo4j 1.9 ( the final release)i'm still seeing pending requests in my chrome console when several requests are being sent ( even if neo4j memory is higher than 1 Gb) that end eventually by a 500 error with this message :Error [500]: Internal Server Error. Server got itself in trouble.Invalid data senti used the commad kill -3 pid to get the logs .
the server plugin :@Description("Custom Query Plugin")
public class CustomQuery extends ServerPlugin {@Description("Make a custom query and limit the results")@PluginTarget(GraphDatabaseService.class)public static Iterable<Node> makeCustomQuery(@Source GraphDatabaseService graphDb,@Description("The query to be looked for") @Parameter(name = "query") String query,@Description("Querying for ?") @Parameter(name = "searchType") String searchType,@Description("The maximum number of results.") @Parameter(name = "max") int max) {List<Node> results= new ArrayList<Node>();if(query.length()!=0 ) {
String luceneQuery="name: ("+query+"*)";String indexType= null;if(searchType.equals("airports" )){luceneQuery += " OR iata:("+query+"*)" ;indexType= "airports" ;}else if(searchType.equals("airlines" )){luceneQuery += " OR iata:("+query+"*)" ;indexType= "airlines" ;}else if(searchType.equals("cities" )){indexType= "cities" ;}else if(searchType.equals("countries" )){indexType= "countries";}IndexHits<Node> nodes=graphDb.index().forNodes(indexType).query(luceneQuery);if(nodes.size() != 0){for (Node n : nodes) {results.add(n);if (results.size()==max) break;}nodes.close();}}return results;}}the logs:Thanks
--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/pL9nO6HgTa0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/pL9nO6HgTa0/unsubscribe.