Advanced Search on Github?

I would like to do an advanced repos search on github for commits that match the conditions below:

  • Language: Javascript
  • Created: [2011-01-01 NOW]
  • Pushed: [2012-05-01 TO NOW]
  • Pitchfork: [100 TO *]
  • Size: [100 TO 1000] // (kb)

I know that github uses Lucene to do its searches, but when searching around I cannot find the documentation for the query syntax, and if I follow the recommendations of the apache Lucene documentation, I often get an "Invalid request syntax" message.

For my personal query, I have no problem issuing queries for language, size and forks, but I still have a problem to find a good match for performing date-based query syntax.

Is it mandatory to include a timer in date requests?
Can I do some calculations for dates like NOW - 3MONTHS?
For example, how could I look for repositions that were created 4 MONTHS IN THE NEXT?

EDIT:

I talked to github support and they told me that they use Solr query syntax, which allows you to query a date range using calculations such as NOW - 4MONTHS, but for some reason it doesn’t work fine for me, or I just don’t understand how it works these filters (created and pushed).

Just to test it, I tried to find any Repos with Javascript as the main language, both of which are selected from the combo boxes, and then try to search using the [created] filter and see what strange results I have.

javascript, ​​ 12 .

: [NOW-12MONTHS/DAY TO NOW/DAY]

233500 , "twitter/bootstrap" .

Javascript, ​​ 24 .

: [NOW-24MONTHS/DAY TO NOW/DAY]

, , 11867, "twitter/bootstrap" , (, , , "" ) ). , "twitter/bootstrap" , , , !

, , , . , - .

+3
3

, , . , ": [NOW-4MONTHS to NOW]" "Created: [2012-01-21 TO 2012-05-20]" Lucene.

, :

  • .
  • .
  • Lucene.

, , , /.

+2

, 26 2012 . ( " " ) (Tim Pease), Solr .

, 10 :

stars:[10 TO *]

:

stars:>10

Solr- , , , .

cats pushed:2012-04-30..2012-07-04


2013 : api

 curl -ni "https://api.github.com/search/repositories?q=more+useful+keyboard" -H 'Accept: application/vnd.github.preview'

. , , (.. "Watchers_count" ).

+2

Check out the Solr documentation page for the exact syntax: http://wiki.apache.org/solr/SolrQuerySyntax

To find the date, the syntax is as follows:

created:[2008-01-01T00:00:00Z TO NOW]
+1
source

All Articles