Can search through URLs fine. However I have about 5000 files and cannot seem to get any results through either the api or the query page. I use the default fileSearch query and the files show up in the file browser under crawl.
I suppose you create an index you labelled "IndexName", using the template "Web crawler". Is that right ?
Currently, we provide two templates. Web crawler is to be used for web crawling. And file crawler is to be used for file crawling.
If you want to index files and web content on the same index, you have to change manually the set up. Following you example, when starting with web crawler template, you have to set up the field mapping for the file crawler.
Go to tab panel: /Crawler/Files/FieldMapping
Here is the minimal mapping you should set up:
content -> content
content -> contentExact
title -> title
title -> titleExact
path -> url
I hope this will be helpful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We made some bug correction since your version. Here the link for just the php
files:
When using the contribs php scripts you have at the top of the file a drop
down (clic it) to define where your instance of OSS can be adressed (adress an
index name).
Look inside the contrib/index.html for a quick explanation.
We encourage you to take a look too at the README file who give you additional
informations about the classes.
if you grab the new version , you'll have the contrib/fileSearch.php who is to
be used with an index created from the "File Crawler" template.
Hope it'll help.
Oh, and if you have some errors like "SimpleXMLElement" saying xml
is badly formatted, go in OSS interface and remove "content" of the
returned field from the fileSearch query template. We're currently adressing
this issue.
Can search through URLs fine. However I have about 5000 files and cannot seem to get any results through either the api or the query page. I use the default fileSearch query and the files show up in the file browser under crawl.
Any suggestions?
http://localhost:8080/search?use=IndexName&q=:
<?xml version="1.0" encoding="UTF-8" ?>
- <response>
<entry key="Status">Error</entry>
<entry key="Exception">java.lang.NullPointerException</entry>
</response>
Is the error i receive
Hello,
I suppose you create an index you labelled "IndexName", using the template "Web crawler". Is that right ?
Currently, we provide two templates. Web crawler is to be used for web crawling. And file crawler is to be used for file crawling.
If you want to index files and web content on the same index, you have to change manually the set up. Following you example, when starting with web crawler template, you have to set up the field mapping for the file crawler.
Go to tab panel: /Crawler/Files/FieldMapping
Here is the minimal mapping you should set up:
content -> content
content -> contentExact
title -> title
title -> titleExact
path -> url
I hope this will be helpful.
Hello,
I'm new in this forum.
I'm trying to make a query from an index made with file crawler template.
http://localhost:8080/filesearch?use=IndexName&q=:
It doesn't work.
Would someone help me ?
I have to say i'm trying to use this with query.php example.
I have modified these two lines
$server = "http://localhost:8080/select?use=IndexName";
$queryUsed = "fileSearch";
Hello,
to call the search api from the url add /select to your path.
would be
I can't find the query.php example you are mentioning in OSS trunk.
Could it be you are refering to ?
: http://localhost:8080/filesearch?use=IndexName&q=:
: http://localhost:8080/select?use=IndexName&q=:
: http://opensearchserve.svn.sourceforge.net/viewvc/opensearchserve/trunk/src
/php/contrib/search.php?view=markup
Sorry,
It's http://localhost:8080/select?use=indexName&qt=fileSearch&start=0
&rows=10&q=sauvegarde.
The query.php file is in the examples/php/OSSquery directory that i get with
open-search-server-1.1-r618.tar.gz.
Thanks
Ok.
Can you update to the latest version ?
We made some bug correction since your version. Here the link for just the php
files:
When using the contribs php scripts you have at the top of the file a drop
down (clic it) to define where your instance of OSS can be adressed (adress an
index name).
Look inside the contrib/index.html for a quick explanation.
We encourage you to take a look too at the README file who give you additional
informations about the classes.
: http://opensearchserve.svn.sourceforge.net/viewvc/opensearchserve/trunk/src
/php.tar.gz?view=tar
Hello,
if you grab the new version , you'll have the contrib/fileSearch.php who is to
be used with an index created from the "File Crawler" template.
Hope it'll help.
Oh, and if you have some errors like "SimpleXMLElement" saying xml
is badly formatted, go in OSS interface and remove "content" of the
returned field from the fileSearch query template. We're currently adressing
this issue.
: http://opensearchserve.svn.sourceforge.net/viewvc/opensearchserve/trunk/src
/php.tar.gz?view=tar