Re: date range in solr 3.1

2011-11-27 Thread do3do3
yes it work :)
very thank

--
View this message in context: 
http://lucene.472066.n3.nabble.com/date-range-in-solr-3-1-tp3527498p3539771.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: date range in solr 3.1

2011-11-23 Thread do3do3
i works now 
great thanks for you :) 

--
View this message in context: 
http://lucene.472066.n3.nabble.com/date-range-in-solr-3-1-tp3527498p3530038.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: date range in solr 3.1

2011-11-23 Thread do3do3
what i got is the number of this period but i want to get this result only,
what is the query to can get that like 
fq=source:news


--
View this message in context: 
http://lucene.472066.n3.nabble.com/date-range-in-solr-3-1-tp3527498p3530424.html
Sent from the Solr - User mailing list archive at Nabble.com.


date range in solr 3.1

2011-11-22 Thread do3do3
i try to use range faceting in solr 3.1 using facet.range=date,
f.date.facet.range.gap=+1DAY, f.date.facet.range.start=NOW/DAY-5DAYS, and
f.date.facet.range.end=NOW/DAY
and i get this exception 

Exception during facet.range of date org.apache.solr.common.SolrException:
Can't add gap 1DAYS to value Sun Nov 13 00:00:00 UTC 2011 for field: date at
org.apache.solr.request.SimpleFacets$RangeEndpointCalculator.addGap(SimpleFacets.java:1093)
at
org.apache.solr.request.SimpleFacets.getFacetRangeCounts(SimpleFacets.java:873)
at
org.apache.solr.request.SimpleFacets.getFacetRangeCounts(SimpleFacets.java:839)
at
org.apache.solr.request.SimpleFacets.getFacetRangeCounts(SimpleFacets.java:778)
at
org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:178)
at
org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1360) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662) Caused by:
java.text.ParseException: Unrecognized command:   at
org.apache.solr.util.DateMathParser.parseMath(DateMathParser.java:277) at
org.apache.solr.request.SimpleFacets$DateRangeEndpointCalculator.parseAndAddGap(SimpleFacets.java:1188)
at
org.apache.solr.request.SimpleFacets$DateRangeEndpointCalculator.parseAndAddGap(SimpleFacets.java:1160)
at
org.apache.solr.request.SimpleFacets$RangeEndpointCalculator.addGap(SimpleFacets.java:1091)
... 27 more
can you help me plz
thanks in advance :)

--
View this message in context: 
http://lucene.472066.n3.nabble.com/date-range-in-solr-3-1-tp3527498p3527498.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Stress Test Solr

2011-05-22 Thread do3do3
Hi 
I need to compare the result i get from my instance i done with the results
which get from other sites who used solr as a core for search
How can i set solrmeter parameters to can do this comparison??
thanks in advance

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Stress-Test-Solr-tp1016253p2971384.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to config DataImport Scheduling

2010-12-16 Thread do3do3

I also have the same problem, i configure dataimport.properties file as shown
in 
http://wiki.apache.org/solr/DataImportHandler#dataimport.properties_example
but no change occur, can any one help me


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-config-DataImport-Scheduling-tp2032000p2097768.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Import From MYSQL database

2010-10-23 Thread do3do3

what i know is to define you field in schema.xml file and build
database_conf.xml file which contain identification for your database 
finally you should define dataimporthandler in solrconfig.xml file
i put sample from what you should done in first post in this topic you can
check it,
if i know additional information i will tell you
good luck
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Import-From-MYSQL-database-tp1738753p1756744.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Import From MYSQL database

2010-10-23 Thread do3do3

i found this files but i can't found any useful info. inside it, what i found
is GET command in http request
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Import-From-MYSQL-database-tp1738753p1756778.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Import From MYSQL database

2010-10-22 Thread do3do3

i really try to index tables with english keywords in mysql database but
fail, and also try to import data from this database during java and
successed 
i don't know how to use the dataimport folder in contrib folder, may be this
is the problem
what i done was build configurations file (shema.xml, solrconfig.xml,
db-data-config.xml)  put
mysql lib in lib folder


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Import-From-MYSQL-database-tp1738753p1751201.html
Sent from the Solr - User mailing list archive at Nabble.com.


indexing mysql database

2010-10-17 Thread do3do3

i try to index table in mysql database,
1st i create db-config.xml file which contain
dataSource type=JdbcDataSource name=1stTrial
Driver=com.mysql.jdbc.Driver encoding=UTF-8 
url=jdbc:mysql://localhost:3306/(database 
name) 
user=(user) password=(password) 
batchSize=-1/
followed by 
entity dataSource=1stTrial name=(table name) pk=id query=select *
from (table name)
and defining of table like 
field column=id name=ID/
field column=Text1 name=(field name)/
2nd i add this field in schema.xml file
and finally decide in solronfig.xml file the db-config.xml file as 
requestHandler name=/dataimport
class=org.apache.solr.handler.dataimport.DataImportHandler
lst name=defaults
str name=configdb-data-config.xml/str
/lst
  /requestHandler
i found index folder which contain only segment.gen  segment_1 files
and when try to search no result i got
any body can present a help ???
thanks in advance 

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/indexing-mysql-database-tp1719883p1719883.html
Sent from the Solr - User mailing list archive at Nabble.com.