Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
osallou committed May 25, 2012
1 parent 6f4f13d commit 786178e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions features.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

header('Content-type: application/json');

$query = "chr:".$_GET["id"]." AND (start:[".$_GET["to"]." TO *] OR end:[* TO ".$_GET["from"]."])";
// $query = "chr:".$_GET["id"]." AND (start:[".$_GET["to"]." TO *] OR end:[* TO ".$_GET["from"]."])";
$query = "chr:".$_GET["id"]." AND (start:[".$_GET["from"]." TO ".$_GET["to"]."] OR end:[".$_GET["from"]." TO ".$_GET["to"]."] OR ( start:[* TO ".$_GET["from"]."] AND end:[".$_GET["to"]." TO *]))";

print file_get_contents('http://seqcrawler.genouest.org/solr/select?rows=200&wt=json&q='.urlencode($query));


?>
?>
2 changes: 1 addition & 1 deletion uiphy.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
</script>

<div class="header">
GenOuest PhyXML/Newick display
GenOuest PhyloXML/Newick display
</div>

<div class="content">
Expand Down

0 comments on commit 786178e

Please sign in to comment.