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" , , , !
, , , . , - .